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

Script not running at all? (specific title)

Asked by
Donut792 216 Moderation Voter
5 years ago

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

Log in to vote
1
Answered by 5 years ago

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.

0
You'll also need to change script.Parent to wherever the part is User#24403 69 — 5y
Ad

Answer this question