Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I fixed the tornado problem where it will hit others but now its not hitting people at all!?

Asked by
Tizzel40 243 Moderation Voter
5 years ago

Now the tornado wont hit any thing at all!

why...………?

local Remote = game.ReplicatedStorage:WaitForChild("ElementalEvents").WindEvent.Move1Event
local tbl = {}
local hithum = false
Remote.OnServerEvent:Connect(function(player)
    hithum = false
local tor = game.ReplicatedStorage.tornado:Clone()
    local char = player.Character
local hum = char:WaitForChild("Humanoid")


tor.Parent = game.Workspace
tor.CFrame = char.HumanoidRootPart.CFrame








    tor.Touched:Connect(function(hit)
    local ehum = hit and hit.Parent:FindFirstChild("Humanoid")
if ehum and ehum ~= hum then
    print("hityou!")
    --if hithum == false then 
        --hithum = true
        ehum:TakeDamage(10)
    --  wait(.5)
        ----hithum = false
    end


wait(5)
    tor:Destroy()
    end)
end)

it spawns and twirls around but when I hit someone it does no damage. help me.

0
Please always post what (if anything) is in the output. Help us help you. vanilla_wizard 336 — 5y
0
is it a union model part mesh what is it IrishStukov 20 — 5y
0
its a mesh part Tizzel40 243 — 5y
0
its not even printing("hityou") Tizzel40 243 — 5y
View all comments (5 more)
0
for one, ehum is a boolean theking48989987 2147 — 5y
0
and you can't damage a boolean theking48989987 2147 — 5y
0
? Tizzel40 243 — 5y
0
No. It is not User#19524 175 — 5y
0
omg brendon xD greatneil80 2647 — 5y

Answer this question