RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"fling all players far when player clicks a ui button and then purchases a gamepass"
-- server script local button = script.Parent button.MouseButton1Click:Connect(function() for _, player in pairs(game.Players:GetPlayers()) do local character = player.Character if character and character:FindFirstChild("Humanoid") then local humanoid = character.Humanoid humanoid:ChangeState(Enum.HumanoidStateType.FallingDown) local force = Instance.new("BodyForce") force.Name = "FlingForce" force.force = Vector3.new(0, 200, 0) force.Parent = character.HumanoidRootPart end end end)