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

How to make a part make player dance?

Asked by 4 years ago

So the title is really what I need help with I tried all type of scripts but none seem to work and there is no tutorials so please help.

0
This is definitely something that you should piece together on your own if you want to improve at scripting over time. I won't tell you how to do it but I will tell you that you should look into the Touched event and animation tutorials. Try to make a script on your own and if you get stuck then you can ask the community and provide your script. cmgtotalyawesome 1418 — 4y
0
ik! xxaxxaz 42 — 4y

1 answer

Log in to vote
0
Answered by
xxaxxaz 42
4 years ago

add a screen gui into starter gui. then rename it Emotes! put in a frame into the emotes. name it what you want. put in a text button into the frame. add a local script. the local script says local script:

01local emote = name -- replace emote with the name of the emote
02local btn = script.Parent
03local plr = game.Players.LocalPlayer
04local char = plr.Character or plr.CharacterAdded:Wait()
05local hum = char:WaitForChild("Humanoid",10)
06local CanEmote = true
07local CoolDown = 1
08 
09btn.MouseButton1Click:Connect(function()
10    if CanEmote == true then
11        CanEmote = false
12        local dance = hum:LoadAnimation(script:FindFirstChild(emote))
13        dance:Play()
14 
15        wait(CoolDown + dance.Length)
16        CanEmote = true
17    end
18end)

after that place down a animation into the local script. put in the emote id through the property's tab! do not forget to rename the animation to the emote you puted into the script at local emote = name!

0
that is for a gui emote xxaxxaz 42 — 4y
0
gui emotes are more effeciant. but you need autoscale lite to make it avialable for all devices. xxaxxaz 42 — 4y
Ad

Answer this question