RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"click the ui button to buy a developer product. buying the product flings all players"
-- local script local button = script.Parent local Players = game:GetService("Players") local function onButtonClick() -- buy the product -- fling all players for _, player in pairs(Players:GetPlayers()) do local character = player.Character if character then character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0, 100, 0))) end end end button.MouseButton1Click:Connect(onButtonClick)