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.
COMMUNITY QUESTION
How to make a part make player dance?
1 answer
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:
local emote = name -- replace emote with the name of the emote
local btn = script.Parent
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid",10)
local CanEmote = true
local CoolDown = 1
btn.MouseButton1Click:Connect(function()
if CanEmote == true then
CanEmote = false
local dance = hum:LoadAnimation(script:FindFirstChild(emote))
dance:Play()
wait(CoolDown + dance.Length)
CanEmote = true
end
end)
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!
2 comments
0
that is for a gui emote
0
gui emotes are more effeciant. but you need autoscale lite to make it avialable for all devices.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
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.
ik!