Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Attempt to call a boolean value, Any help?

I tried making animation gui , And everytime i pressed play it gave an error

Script:

local btn = script.parent

local hummy = game:GetService("Players").LocalPlayer.Character.Humanoid

local stu = Instance.new('Animation')

stu.AnimationId = 'rbxassetid://978176345'

local notfunny = hummy:LoadAnimation(stu)

btn.MouseButton1Click:Connect(function()	
		if notfunny.IsPlaying() then
		notfunny:Stop()
				
	else
		notfunny:Play()
		notfunny:AdjustSpeed(1)
	end
end)

1 answer

You are attempting to use IsPlaying() as if it were a function. The correct way is .IsPlaying as if it were a property.

This discussion is preserved as it was. New answers, comments, and votes are closed.