player = game.Players.LocalPlayer
animation = script.Parent.Poses.Sit


function actionOn()
	script.Parent.TextButton.Visible = false
	script.Parent.Poses.Visible = true
end

function actionOff()
	script.Parent.TextButton.Visible = true
	script.Parent.Poses.Visible = false
end

function sit()
	local animationTrack = player.Character.Humanoid:LoadAnimation()
	animationTrack:Play()
end

script.Parent.TextButton.MouseButton1Click:connect(actionOn)
script.Parent.Poses.TextButton.MouseButton1Click:connect(actionOff)

Above is a script(with GUI text boxes and animations prepped, and only the Sit animation in currently) When I run it, it works... for me, at least. When I asked several others to test it out, however, it didn't work for them. It's obviously a Parent/Asset/etcetc issue, but what advice do people have to fix the issue so OTHERS can use this action?

3 comments

0

Yes, I resposted the question because I was reading the guidelines and I figured I'd be a good noodle.

0

Is this in Starter Gui ?

0

Yes.