iiMrMario
|
  |
| Joined: 28 Feb 2015 |
| Total Posts: 280 |
|
|
| 31 Jul 2016 07:48 AM |
but how do i give the raido to everyone? here it is:
local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end return parent[childName] end game.Players.PlayerAdded:connect(function(player) local GamePassService = Game:GetService('GamePassService') local PlayersService = Game:GetService('Players') local GamePassIdObject = WaitForChild(script, 'GamePassId') player.CharacterAdded:connect(function(char) if player.Character.Name == "Put Your Name in Here" or player.Character.Name == "Put Your Name In Here" or player.Character.Name == "Put your Name In Here" or GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then require(game:GetService("ReplicatedStorage"):WaitForChild("GiveRadio"))(player) end end) end)
*Drops Teh Mic* |
|
|
| Report Abuse |
|
|
iiMrMario
|
  |
| Joined: 28 Feb 2015 |
| Total Posts: 280 |
|
|
| 31 Jul 2016 07:51 AM |
nvm i did this return function(player) local function weldBetween(a, b) local weld = Instance.new("ManualWeld") weld.Part0 = a weld.Part1 = b weld.C0 = CFrame.new() weld.C1 = b.CFrame:inverse() * a.CFrame weld.Parent = a return weld; end local char = player.Character local hand = game:GetService("ServerStorage"):WaitForChild("Radio"):clone() hand.Parent=char hand.CFrame=char:WaitForChild("Torso").CFrame*CFrame.new(Vector3.new(0,0,1))*CFrame.Angles(0,math.rad(180),math.rad(45)) weldBetween(char:WaitForChild("Torso"), hand) hand.CanCollide=true hand.Anchored=false hand:WaitForChild("Radio").Parent=player:WaitForChild("PlayerGui") end
*Drops Teh Mic* |
|
|
| Report Abuse |
|
|
iiMrMario
|
  |
| Joined: 28 Feb 2015 |
| Total Posts: 280 |
|
|
| 31 Jul 2016 02:40 PM |
fixed the script
*Drops Teh Mic* |
|
|
| Report Abuse |
|
|