Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Clicking mechanic stopping after death?

Basiclly this script makes you faster every time you click

I Was just messing around and i noticed that when you die the starterplayerscript stops working:


local Players = game:GetService("Players")
local player = Players.LocalPlayer
local char = player.CharacterAdded:Wait()
local mouse = player:GetMouse()
local Cam = game.Workspace.CurrentCamera
mouse.Button1Up:Connect(function()
	char.Humanoid.WalkSpeed += 0.5
	end)

1 answer

✓ Accepted answer
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local char = player.CharacterAdded:Wait()
local mouse = player:GetMouse()
local Cam = game.Workspace.CurrentCamera
mouse.Button1Up:Connect(function()
    char.Humanoid.WalkSpeed += 0.5
    end)

player.CharacterAdded:Connect(function(character)
	char = character
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.