TheHeckingDeveloper

ExampleOfGoodCode

Jul 17th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local NumberTable = {
  3.     ["1"] = "One",
  4.     ["2"] = "Two",
  5.     ["3"] = "Three",
  6.     ["4"] = "Four",
  7.     ["5"] = "Five",
  8.     ["6"] = "Six",
  9.     ["7"] = "Seven",
  10.     ["8"] = "Eight",
  11.     ["9"] = "Nine",
  12.     ["10"] = "Ten",
  13. }
  14.  
  15. ReplicatedStorage.ButtonPressed.OnServerEvent:Connect(function(Player, TheButtonsText)
  16.     ReplicatedStorage.DaAllClients:FireAllClients(Player.Name.. " Pressed ".. NumberTable[TheButtonsText])
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment