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

Why doesnt this script add a trail to the character when the txt button is clicked?

Asked by 5 years ago
lol = script.Parent
hum = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local Trail = game.ReplicatedStorage.Trail
 local plrTrail = Trail:Clone()
 local character = script.Parent.Parent.Parent

lol.MouseButton1Click:Connect(function()
    hum.WalkSpeed = 100
     plrTrail.Parent = hum.HumanoidRootPart
  if hum:FindFirstChild("UpperTorso")then
   plrTrail.Attachment0 = hum.Head.FaceFrontAttachment
   plrTrail.Attachment1 = hum.Torso.RootRigAttachment
  else
   plrTrail.Attachment0 = hum.Head.FaceFrontAttachment
   plrTrail.Attachment1 = hum.Torso.WaistBackAttachment
    lol.Parent.Visible = false
end
end)

I am trying to make a "Super Hero Sim Game" and im trying to add super speed. The trail does not add to my characters body! Please help!

0
lol nice name TheluaBanana 946 — 5y
0
ty sir tightanfall 110 — 5y
0
You're only cloning the trail once. User#19524 175 — 5y
0
not sure if this would help, but you should do a while loop for while the Humanoid is in its Running animation DeceptiveCaster 3761 — 5y
0
and Clone the trail continuously in that loop DeceptiveCaster 3761 — 5y

Answer this question