#idk

1 messages · Page 1 of 1 (latest)

viscid ore
#
local part = workspace.LevelModel.TouchPart
local debounce = {}

part.Touched:Connect(function(hit)
    local character = hit.Parent
    local player = game.Players:GetPlayerFromCharacter(character)
    if not player then return end

    if debounce[player] then return end
    debounce[player] = true

    local stats = player:FindFirstChild("Stats")
    if stats and stats:FindFirstChild("Level") then
        stats.Level.Value += 0.01
    end

    task.delay(0.1, function()
        debounce[player] = nil
    end)
end)
``` how would i make this so the player doens't have to to move and can just stay still and gain level?
thin sentinel
#

well uh oh try to raycast instead of the touch event i guess..

#

like while true do task.wait(1) and then do raycast to check if the player is standing on the thing

open berry