I created a chat command script that makes you able to go from super saiyan to super saiyan blue and it works fine in studio but in game it just doesn't work
Do I need to change anything or do I need to use local scripts?
Super saiyan chat command
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
msg = msg:lower()
if (msg == "ssj") then
if (p.Character ~= nil) then
game.Players.LocalPlayer.Character.gokuhair.ssj.Disabled = false
end
end
end)
end)
Super saiyan god chat command
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
msg = msg:lower()
if (msg == "ssg") then
if (p.Character ~= nil) then
game.Players.LocalPlayer.Character.gokuhair.ssg.Disabled = false
end
end
end)
end)
Super saiyan blue chat command
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
msg = msg:lower()
if (msg == "ssgss") then
if (p.Character ~= nil) then
game.Players.LocalPlayer.Character.gokuhair.ssgss.Disabled = false
end
end
end)
end)

3 comments
connect is deprecated, use Connect
Changed :connect to :Connect but it still doesn't work
its because its decaperated