free scripts


free scripts

little Luau scripts you can use in your own games, hit copy and paste into Studio!
(to add your own: copy a card block in this file & swap in your code)

Sprint on Shift
LocalScript → StarterPlayerScripts
-- hold Left Shift to run, release to walk
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local WALK, RUN = 16, 28

UIS.InputBegan:Connect(function(key)
    if key.KeyCode == Enum.KeyCode.LeftShift then
        plr.Character.Humanoid.WalkSpeed = RUN
    end
end)

UIS.InputEnded:Connect(function(key)
    if key.KeyCode == Enum.KeyCode.LeftShift then
        plr.Character.Humanoid.WalkSpeed = WALK
    end
end)
Kill Brick
Script → inside a Part
-- touch this part and you die (great for traps!)
local part = script.Parent

part.Touched:Connect(function(hit)
    local hum = hit.Parent:FindFirstChildWhichIsA("Humanoid")
    if hum then
        hum.Health = 0
    end
end)

more scripts coming soon