Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local re = game.ReplicatedStorage:WaitForChild("OnOwnerJoined")
- local function callback(text)
- if text == "Yes!" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- end
- end
- local bindableFunction = Instance.new("BindableFunction")
- bindableFunction.OnInvoke = callback
- re.OnClientEvent:Connect(function()
- game.StarterGui:SetCore("SendNotification",
- {
- Title = "Owner has joined!";
- Text = "Do you want extra walk speed?";
- Icon = "rbxassetid://156507320";
- Duration = 10;
- Callback = bindableFunction;
- Button1 = "Yes!";
- Button2 = "No!"
- }
- )
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement