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 » Scripting Helpers
Home Search
 

Re: Helmet GIVER

Previous Thread :: Next Thread 
janis123 is not online. janis123
Joined: 29 Aug 2008
Total Posts: 249
23 Jun 2014 02:56 PM
Hello guys i made a cool morph with gives you a helmet and mask.
for some unknown reason it gives only once and after that no more.
Can you help me please with that?
Report Abuse
Aikio is not online. Aikio
Joined: 31 May 2010
Total Posts: 369
23 Jun 2014 02:57 PM
Code please?
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
23 Jun 2014 03:11 PM
-- Will remove hat's of the player
function newPlayer(Player)
Player.CharacterAdded:connect(function(Character)
wait(5) -- give time for hats to load
for _, Object in pairs (Character:GetChildren()) do
if Object:IsA("Hat") then
Object:Destroy()
end
end
end)
end

Game.Players.PlayerAdded:connect(newPlayer)


-- Will change the copy the mesh in lightning

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
wait(6)
local f = c:findFirstChild("Humanoid").Parent if f~=nil then f.Pants:Destroy() f.Shirt:Destroy() end
--if object:IsA("Hat") then object:Destroy() end
local q = c:findFirstChild("Dominus") if q ==nil then
local h =Instance.new("Hat", f)
local p = Instance.new("Part", f.Hat)
h.Name = "Dominus"
p.Position = f.Head.Position
p.Name = "Handle"
p.formFactor = 0
p.Size = Vector3.new(1, 0.4, 1)
p.BottomSurface = 0
p.TopSurface = 0
p.Locked = false
game.Lighting.Mesh:clone().Parent = p
h.AttachmentForward = Vector3.new (-0, -0, -1)
h.AttachmentPos = Vector3.new(0, 0.4, 0)
h.AttachmentRight = Vector3.new (1, 0, 0)
h.AttachmentUp = Vector3.new (0, 1, 0)
Instance.new("Weld", f.Dominus)
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
23 Jun 2014 03:11 PM
-- Will remove hat's of the player
function newPlayer(Player)
Player.CharacterAdded:connect(function(Character)
wait(5) -- give time for hats to load
for _, Object in pairs (Character:GetChildren()) do
if Object:IsA("Hat") then
Object:Destroy()
end
end
end)
end

Game.Players.PlayerAdded:connect(newPlayer)


-- Will change the copy the mesh in lightning

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
wait(6)
local f = c:findFirstChild("Humanoid").Parent if f~=nil then f.Pants:Destroy() f.Shirt:Destroy() end
--if object:IsA("Hat") then object:Destroy() end
local q = c:findFirstChild("Dominus") if q ==nil then
local h =Instance.new("Hat", f)
local p = Instance.new("Part", f.Hat)
h.Name = "NAME OF MESH YOU HAVE IN LIGHTNING HERE"
p.Position = f.Head.Position
p.Name = "Handle"
p.formFactor = 0
p.Size = Vector3.new(1, 0.4, 1)
p.BottomSurface = 0
p.TopSurface = 0
p.Locked = false
game.Lighting.Mesh:clone().Parent = p
h.AttachmentForward = Vector3.new (-0, -0, -1)
h.AttachmentPos = Vector3.new(0, 0.4, 0)
h.AttachmentRight = Vector3.new (1, 0, 0)
h.AttachmentUp = Vector3.new (0, 1, 0)
Instance.new("Weld", f.Dominus)
Report Abuse
janis123 is not online. janis123
Joined: 29 Aug 2008
Total Posts: 249
23 Jun 2014 03:12 PM
can i just give the helmet set? cos my scripting knowledge is bad
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
23 Jun 2014 03:16 PM
Which helmet do you want?
Report Abuse
janis123 is not online. janis123
Joined: 29 Aug 2008
Total Posts: 249
23 Jun 2014 03:24 PM
this please.

http://www.roblox.com/SUITS-item?id=162822210
Report Abuse
janis123 is not online. janis123
Joined: 29 Aug 2008
Total Posts: 249
24 Jun 2014 02:47 PM
Please help?
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
24 Jun 2014 04:44 PM
I just put the script here..
Report Abuse
janis123 is not online. janis123
Joined: 29 Aug 2008
Total Posts: 249
25 Jun 2014 01:42 PM
Where do i place the script... and Which one?
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
25 Jun 2014 02:43 PM
You put the second script I posted in workspace.
The mesh you want the hat to change in you will put in Lignting and you will call the mesh Dominus
Report Abuse
janis123 is not online. janis123
Joined: 29 Aug 2008
Total Posts: 249
26 Jun 2014 09:57 AM
Can I just give you the helmet and you fix it? because the thing you said i didnt get it.
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jun 2014 12:49 PM
Give it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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