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

Script not running at all? (specific title)

ok so i have a localscript that is inside a part that is inside of workspace but the script is not running at all and yes, it its not disabled, nothing prints and the decal does not change

localscript:

local bouncede = false
print("waiting")
script.Parent.Touched:Connect(function()
	if bouncede == false then
		print("running")
		bouncede = true
		wait(51.66)
		game.Workspace.VipArt.Decal.Texture = "rbxassetid://2535919362"
		print("set")
		wait(13)
		game.Workspace.VipArt.Decal.Texture = "rbxassetid://104774613"
		wait(49)
		bouncede = false
	end
end)

1 answer

✓ Accepted answer

Local scripts can only run in PlayerGui, Backpack, Character, PlayerScripts, and ReplicatedFirst. You should move the local script into a place where it can run, or make the script a server script.

1 comment

0

You'll also need to change script.Parent to wherever the part is

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