|
| 21 Jul 2015 09:57 PM |
Worker = game.Lighting.Worker local player = game.Players.LocalPlayer local mouse = player:GetMouse()
mouse.Button1Down:connect(function (click) local clone = Worker:clone() clone.Parent = game.Workspace clone:MoveTo(mouse.Hit.p) clone.Name = "Worker" wait(1) local Master = clone:FindFirstChild("Master") wait(0.1) Master.Value = player.Name wait(1) local Humanoid = Instance.new("Humanoid") Humanoid.Parent = Worker end)
When I click , it spawn them at the good place. The first one , there no humanoid name at all and his arm are gone.The other one blew in piece with their health and their name showing. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2015 10:02 PM |
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
Mouse.Button1Down:connect(function() local Clone = game.Lighting.Worker:Clone() Clone.Parent = workspace Clone:MoveTo(Mouse.Hit.p) Clone:FindFirstChild("Master").Value = Player.Name Instance.new("Humanoid",Clone) end)
Much improved, I think. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2015 10:11 PM |
| Well atleast the first one spawn like the other , but when they spawn they still all die ;/ |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2015 10:12 PM |
| Thanks for the help. Sorry I forgot to say it . |
|
|
| Report Abuse |
|
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 21 Jul 2015 10:19 PM |
as ispec use, call MakeJoints on the model
also i wouldn't recommend lighting for storing stuff like that. because you are using a local script, i would recommend putting this model into replicatedstorage
http://wiki.roblox.com/index.php?title=API:Class/ReplicatedStorage http://wiki.roblox.com/index.php?title=ServerStorage |
|
|
| Report Abuse |
|
|