You can write your topic however you want, but you need to answer these questions:
**What do you want to achieve?
A jump pad
What is the issue?
The issue is it keeps showing an error when it works.
HumanoidRootPart is not a valid member of Model “Workspace.Model”
What solutions have you tried so far?
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!
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
script.Parent.Touched:Connect(function(h)
if h.Parent:FindFirstChild("HumanoidRootPart") then
h.Parent.HumanoidRootPart.Velocity = Vector3.new(0,100,0)
end
end)
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("HumanoidRootPart") then
hit.Parent.HumanoidRootPart.Velocity = Vector3.new(0, 100, 0)
end
end)
Just check if the one that touched the jump pad is a player, then proceed with changing the Velocity of the HumanoidRootPart.
local Players = game:GetService("Players")
script.Parent.Touched:Connect(function(hit)
local Character = hit.Parent
if Character ~= nil and Players:GetPlayerFromCharacter(Character) then
Character.HumanoidRootPart.Velocity = Vector3.new(0,100,0)
end
end)