wait(.5) local UserInputService = game:GetService("UserInputService") local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local charname = char.Name UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Q then if plr.Team.Name == ("Foundation Personnel") or plr.Team.Name == ("Internal Security Department") then local cloneSmoke = game.ServerStorage:WaitForChild("Smoke") local cloneSmoke2 = cloneSmoke:Clone() cloneSmoke2.Parent = char.UpperTorso local poofsound = game.ServerStorage["Poof sound"]:Clone() poofsound.Parent = char.UpperTorso poofsound:Play() wait(1) cloneSmoke.Enabled = false cloneSmoke:Destroy() poofsound:Destroy() end end end) -- EDITED SCRIPT
I don't see why it wouldn't work..