I created (supposedly) a player launcher. It doesn't work though. What's the problem?
script.Parent.Touched:Connect(function(part)
local parent = part.Parent
local humanPart = parent:FindFirstChild("HumanoidRootPart")
local plr = game.Players:FindFirstChild(parent.Name)
if humanPart and plr then
humanPart.Velocity = Vector3.new(0, 10000, 0)
print(humanPart.Velocity)
end
end)
the script's Parent is a part named "launcher" in Workspace.

3 comments
You can instead do "game.Players:GetPlayerFromCharacter(parent)" for line 4. It's quite literally the same thing, only simpler.
thx. i really need to start tinkering with the events you can do with the Players object in studio.
the script does print out the velocity after increasing it. it was increased, but my player isnt launched. what does this mean?