Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- BAD CODE. TERRIBLE CODE. --
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- ReplicatedStorage.ButtonPressed.OnServerEvent:Connect(function(Player, TheButtonsText)
- if TheButtonsText == "1" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed one.")
- elseif TheButtonsText == "2" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed two.")
- elseif TheButtonsText == "3" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed three.")
- elseif TheButtonsText == "4" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed four.")
- elseif TheButtonsText == "5" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed five.")
- elseif TheButtonsText == "6" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed six.")
- elseif TheButtonsText == "7" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed seven.")
- elseif TheButtonsText == "8" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed eight.")
- elseif TheButtonsText == "9" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed nine.")
- elseif TheButtonsText == "10" then
- ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed ten.")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment