Er1x_Official

How To Make a Tool GUI Roblox - Script

Jun 16th, 2021
5,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local par = script.Parent
  2. local remote = par.RemoteEvent
  3. local tools = par.Tools
  4.  
  5. remote.OnServerEvent:Connect(function(plr, info)
  6.     if info == "Tool1" then
  7.         local tool = tools.block:Clone()
  8.         tool.Parent = plr.Backpack
  9.     elseif info == "Tool2" then
  10.         local tool = tools.ball:Clone()
  11.         tool.Parent = plr.Backpack
  12.     elseif info == "Tool3" then
  13.         local tool = tools.cylinder:Clone()
  14.         tool.Parent = plr.Backpack
  15.     end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment