#idk why this doesnt work

2 messages · Page 1 of 1 (latest)

gloomy gorge
#

local rp = game:GetService("ReplicatedStorage")


local active = false
local debounce = false

local cooldown = 3


game.layers.PlayerAdded:Connect(function(player) -- runs every time a player joins
    player.Chatted:Connect(function(msg) -- runs once the player that joined chats a message
        if msg == "ssj" then -- create your conditions
            if debounce == false and active == false then
                debounce = true  



                local char = Player.Character
                local ts = game:GetService("TweenService")
                local c = char





                local tttt = Instance.new("Animation")
                tttt.AnimationId = "rbxassetid://11645553547" -- YOUR ANIMATION!
                local a = c.Humanoid:LoadAnimation(tttt)


                a:Play()  
                script.Sound:Play()
                wait(0.2)
                script.RemoteEvent:FireServer() 

                wait(1)  







                script.RemoteEvent:FireServer()
                script.Off.Disabled = false
                wait(0.02)
                script.Parent.SSJ.Disabled = true 
                script.ssj1:Play() -- do stuff here if the condition is met
            end
        end
    end)
end)```
it has to run when i chat smth but it doesnt work
upper tendon
#

replace game.layers with game.Players