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

I am trying to make animations work in game [closed]

Asked by 10 years ago

This question already has an answer here:

This animation won't play online

But they only way they work is in game test solo and will not work when my friend trys it in solo.

script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked)
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=147602703" -- your id here

local animTrack =playerWhoClicked.Character:FindFirstChild("Humanoid"):LoadAnimation(animation)
-- change Humanoid to the target's Humanoid

animTrack:Play()

end)

0
Can you show us the code you're using? User#2 0 — 10y
0
Yes Raditok 5 — 10y
0
script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked) local animation = Instance.new("Animation") animation.AnimationId = "http://www.roblox.com/Asset?ID=147602703" -- your id here local animTrack =playerWhoClicked.Character:FindFirstChild("Humanoid"):LoadAnimation(animation) -- change Humanoid to the target's Humanoid animTrack:Play() end) Raditok 5 — 10y
0
Edit your post and add that. User#2 0 — 10y
View all comments (3 more)
0
Alrighty Raditok 5 — 10y
0
Do you have any output, also? User#2 0 — 10y
0
It works perfectly fine for me in solo mode so I cannot get output Raditok 5 — 10y

Marked as Duplicate by User#2

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?