DanPai
|
  |
| Joined: 03 Jun 2016 |
| Total Posts: 355 |
|
|
| 21 Oct 2017 06:32 PM |
| This script is supposed to give you a uniform when you touch a button but it gives everyone the uniform when one person touches it. local RemoteEvents = game:GetService("ReplicatedStorage"):WaitForChild("UniformEvents") local Give = RemoteEvents:WaitForChild("UTouch") debounce = false a = game.workspace.ShirtGiver.Button Shirtid = ############################################ Give.OnServerEvent:connect(function(player) local char = player.Character a.BrickColor = BrickColor.new("Deep orange") repeat wait() until char.Shirt char.Shirt:Destroy() local ashirt = Instance.new("Shirt") ashirt.ShirtTemplate = Shirtid ashirt.Name = "BaristaShirt" ashirt.Parent = char wait(1) a.BrickColor = BrickColor.new("Electric blue") end) |
|
|
| Report Abuse |
|
DanPai
|
  |
| Joined: 03 Jun 2016 |
| Total Posts: 355 |
|
|
| 21 Oct 2017 06:35 PM |
local RemoteEvents = game:GetService("ReplicatedStorage"):WaitForChild("UniformEvents") local Give = RemoteEvents:WaitForChild("UTouch") debounce = false a = game.workspace.ShirtGiver.Button Shirtid = "ugh"
Give.OnServerEvent:connect(function(player) local char = player.Character a.BrickColor = BrickColor.new("Deep orange") repeat wait() until char.Shirt char.Shirt:Destroy() local ashirt = Instance.new("Shirt") ashirt.ShirtTemplate = Shirtid ashirt.Name = "BaristaShirt" ashirt.Parent = char wait(1) a.BrickColor = BrickColor.new("Electric blue") end)
|
|
|
| Report Abuse |
|