generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I found A radio script

Previous Thread :: Next Thread 
iiMrMario is not online. 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 is not online. 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 is not online. iiMrMario
Joined: 28 Feb 2015
Total Posts: 280
31 Jul 2016 02:40 PM
fixed the script


*Drops Teh Mic*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image