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

how do i fix this? when i use the dance tool, i dont see the dance.

Asked by 4 years ago
Edited 4 years ago

im trying to make an emote dances remake game, but i cant! when i use this code made by someone on roblox studio, it doesnt work. this is the code: "enabled = false local Tool = script.Parent; local dancer = nil local player = game.Players.LocalPlayer

function onActivated()

--This will check if it is enabled and then either start dancing or stop dancing

if enabled == false then local humanoid = Tool.Parent:FindFirstChild("Humanoid") local torso = Tool.Parent:FindFirstChild("Torso")

dancer = humanoid:LoadAnimation(Tool.dance)
Tool.DanceObject.Value = dancer
dancer:Play()
Tool.dancepart.Position = player.Character.Head.Position
Tool.dancepart.SongLoop:Play()
enabled = true
speed = player.Character.Humanoid.WalkSpeed
player.Character.Humanoid.WalkSpeed = 0
repeat 
wait(1)
Tool.dancepart.Position = player.Character.Head.Position
until enabled == false

else dancer:Stop() dancer:remove() Tool.dancepart.SongLoop:Stop() enabled = false player.Character.Humanoid.WalkSpeed = speed end end

function onUnequipped() dancer:Stop() dancer:remove() Tool.dancepart.SongLoop:Stop() enabled = false player.Character.Humanoid.WalkSpeed = speed end

Tool.Activated:connect(onActivated) Tool.Unequipped:connect(onUnequipped)"

(btw ik it looks weird but it starts at the first quotation mark and ends at the second quotation mark) when i try to use the dance tool, i hear the song but dont see my character dancing. help everything i try wont work.

1
can you please reformat this, it is terrible to my eyes cegberry 432 — 4y
0
pleas help RobloxOplay0 0 — 4y
0
idk how to reformat i just copy and pasted the code RobloxOplay0 0 — 4y

1 answer

Log in to vote
-1
Answered by 4 years ago

nvm i figured it out

Ad

Answer this question