Er1x_Official

local script, shop tutorial

Aug 29th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local remote = game.ReplicatedStorage.buy -- the remote event
  2. script.Parent.Frame.sword.MouseButton1Click:Connect(function() -- function
  3.     remote:FireServer("Sword") -- fire the event
  4. end)
  5.  
  6. script.Parent.Frame.lazer.MouseButton1Click:Connect(function()
  7.     remote:FireServer("Lazer") -- fire the event
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment