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
|
  |
| Joined: 31 May 2010 |
| Total Posts: 369 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
| |
|
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
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 249 |
|
| |
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 24 Jun 2014 04:44 PM |
| I just put the script here.. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
| |
|