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

The decal change script is not working?

Asked by 2 years ago
Edited 2 years ago

Hello, I wanted to ask why my script is not working. I put this script into the "Server Script Service" and I don't know why it doesn't work in advance, thanks in advance.

god = game.Players.DontBlinkDrWho 
function onChatted(msg)
    if msg == "!Change" then
        game.Workspace.alertzone.Decal.Transparency = "7726603141"
    end 
end 

god.Chatted:connect(onChatted) 

Thanks

1 answer

Log in to vote
0
Answered by
SuperPuiu 497 Moderation Voter
2 years ago
Edited 2 years ago

You forgot to add to id rbxassetid://, here's the working code Also you was trying to change Trasnparency.

god = game.Players.DontBlinkDrWho 
function onChatted(msg)
    if msg == "!Change" then
        game.Workspace.alertzone.Decal.Texture = "rbxassetid://7726603141"
    end 
end 

god.Chatted:connect(onChatted) 
0
thanks Bartosz_olsztyn 16 — 2y
0
Mark it as the answer ? SuperPuiu 497 — 2y
0
Not working and i have a question Where i must put this? Bartosz_olsztyn 16 — 2y
Ad

Answer this question