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: Problem Spawning a "Minion" Humanoid (not Player)

Previous Thread :: Next Thread 
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
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
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
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
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
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
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
21 Jul 2015 10:12 PM
Thanks for the help. Sorry I forgot to say it .
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
21 Jul 2015 10:12 PM
Clone:MakeJoints()
Report Abuse
instawin is not online. 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
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