I am trying to make a wind gust in my game that launches you up into the air. Any idea on how to do it?
Here is my script currently:
function partTouched(obj)
if obj.Parent:findFirstChild("Humanoid") then
script.Parent:findFirstChild("Humanoid").Position = script.Parent:findFirstChild("Humanoid").Position + Vector3.new(0,1,0)
end
end
script.Parent.Touched:connect(partTouched)
when i test this it comes up with this error
Workspace.IceFX.Script:3: attempt to index nil with 'Position'

2 comments
the second one is not working it is instead doing a glitched jump when jump is pressed.
Try using a body velocity instead with max force and destroy it a few seconds after