You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
A nice, beautiful tornado! (ngl mine looks pretty horrible)
What is the issue? Include screenshots / videos if possible!
It wont notice the player
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
None.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
while wait() do
workspace.Tornado.Position = Vector3.new(math.random(-900, 900), 319.997, math.random(-900, 900))
workspace.Tornado.Attachment.Outer.Enabled = true
workspace.Tornado.Attachment.Inner.Enabled = true
print("Descending")
wait(5)
print("Descended")
for i = 1, 2500 do
wait(0.01)
for e, obj in pairs(workspace.Tornado:GetTouchingParts()) do
obj.Velocity = Vector3.new(0, 100, 0)
if obj.Parent:FindFirstChildOfClass("Humanoid") then
obj.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
end
end
end
workspace.Tornado.Attachment.Outer.Enabled = false
workspace.Tornado.Attachment.Inner.Enabled = false
end
ehhhh, i NEED the loop part. if i didn’t loop, all of the waits would be put to waste. the player would be flung to the sky in shock for being in the part.
Why can’t you remove the waits? Also it is doing the same for loop 2500 times, with each waiting 0.01. This makes it do every single loop in around 25 seconds. Maybe you are getting there too late.