RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if player touches part player gets pushed away"
-- script for part local part = script.Parent local function pushAway(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local character = player.Character local humanoid = character:FindFirstChild('Humanoid') if humanoid then humanoid.Sit = true wait(0.1) humanoid.Sit = false humanoid.PlatformStand = true wait(0.1) humanoid.PlatformStand = false humanoid:ChangeState(Enum.HumanoidStateType.Jumping) humanoid:ApplyDescription({JumpPower = 100}) wait(1) humanoid:ApplyDescription({JumpPower = 50}) end end end part.Touched:Connect(pushAway)