RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"part named RedOrb on touch with upper torso must give player perm speed boost 1"
-- script for RedOrb local part = script.Parent local speedBoost = 1 local function onTouched(otherPart) local player = game.Players:GetPlayerFromCharacter(otherPart.Parent) if player and otherPart.Name == "UpperTorso" then local humanoid = player.Character:FindFirstChild("Humanoid") if humanoid then humanoid.WalkSpeed = humanoid.WalkSpeed + speedBoost end end end part.Touched:Connect(onTouched)