#How to make animation play in game when part is clicked

1 messages · Page 1 of 1 (latest)

barren briar
#

I have an animation of a giant flying rock that lasers a tree and want it to play in game and from the click of a part

rain mural
#

@barren briar

#

Let's say it's like a skill?

barren briar
#

huh

rain mural
#

bruh

barren briar
#

how do i make the animation play in game

#

at the click of a part

copper lark
#

whats the error

#

@barren briar

hasty rock
#

script.Parent.MouseClick(connect(function(plr)
local admim = plr.Character.Humanoid:LoadAnimation(script.Animation)
admim:Play()
end)

#

put a click detector into the designated part

#

and put the animation in the script

barren briar
hasty rock
#

what I said

barren briar
hasty rock
#

script in a clickdetetcor

#

put clcikdetetcor in the designated part

barren briar
#

i added a click detector to the part

burnt meteorBOT
#

studio** You are now Level 1! **studio

barren briar
#

i have the script but does it go on the rock model? does it go in the part?

hasty rock
#

I told u make a clickdetector

#

a roblox designed thing

#

and put the wcript in thwre

barren briar
#

yes

#

oh ok

#

1 sec

hasty rock
#

then put the clickdetector in the rock

#

hold on

#

the the rock have many parts

barren briar
#

it only has 7 total parts

#

2 lasers. 2 eye meshes, 2 eyebrows and the body

hasty rock
#

well which part do u want to be clickable

#

@barren briar @barren briar @barren briar @barren briar

barren briar
#

how to make it work

hasty rock
#

put the script into the clickdetector thwt will trigger the mechaism

barren briar
#

on the button or on the rock?

hasty rock
#

in the button

#

I guess

#

hold on

#

can u send a screenshot

barren briar
#

holf on

barren briar
#

the rock parts

#

the button

hasty rock