#local part = script.Parentlocal function alTocco(hit)local person = hit.Parentlocal humanoid =
1 messages · Page 1 of 1 (latest)
local part = script.Parent
local function alTocco(hit)
local person = hit.Parent
local humanoid = person:FindFirstChild("Humanoid")
if humanoid then
while true do
task.wait(2)
local numerogrande = math.random(1, 100)
local numeropiccolo = math.random(1, 10)
print(numerogrande)
print(numeropiccolo)
end
end
end
part.Touched:Connect(alTocco)
sry for 2 seconds but still doesnt wortk
its because part.Touched fires very often. So every time part.Touched fires a new while true loop begins
so what i change i dont get it
Make a dictionary that holds every player that touched the part. So if the player is inside the dictionary you just return the alTocco function. So now each player can only enter the while true loop once.
can u make a code and sent it here thanks
No.