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

Clicking mechanic stopping after death?

Asked by 1 year ago
Edited 1 year ago

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

Log in to vote
1
Answered by 1 year ago
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)
Ad

Answer this question