I’m trying to temporarily disable a ghosts movement speed with a proximity prompt, but I cant figure out how to attach the proximity prompt to a part but still be able to access the “humanoid” property. Also need help with the scripts.
1 Like
Insert a proximityPrompt in the Part, Insert a normal script inside the ProximityPrompt.
and use the code below:
local prox = script.Parent
prox.Triggered:Connect(function(Player)
local Character = Player.Character
local Humanoid = Character:FindFirstChild("Humanoid")
Humanoid.WalkSpeed = 50
end)
2 Likes
I’m looking for the script to change the ghosts walkspeed, not the player, thank you though!! Would I just need to change “Player” to “Ghost”?
2 Likes
What do u mean ghosts? An NPC?? If its an npc. just make a variable for it.
local NPC = workspace.NPC
local Humanoid = NPC:FindFirstChild("Humanoid") etc.....
2 Likes
Thank you!! thats exaclty what im looking for
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.