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

How do You make a Character rise into the air after touching an object? [closed]

Asked by 3 years ago
Edited 3 years ago

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 an error

Workspace.IceFX.Script:3: attempt to index nil with 'Position'

0
You should post on the developer forum you request scripts but this website is for helping programmers with their errors in their code MarkedTomato 810 — 3y

Closed as Not Constructive by awfulszn, MarkedTomato, and JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?