Ness123
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 331 |
|
|
| 10 Oct 2017 02:43 AM |
i made script for spawning npc's when u click the button it spawns an npc
jimmy = script.Parent--name the part to anything u like
function turnGhostly() if jimmy.Transparency == 0 then --Replace this to the name of your part jimmy.Transparency = 0.5 --Replace this to the name of your part script.Parent.BrickColor = BrickColor.Red() game.Workspace.push:Play() wait(1) game.Workspace.push:Stop() game.Workspace.jimmy.ClickDetector:remove() --Replace this to the name of your part
local msg = Instance.new("Message")--Copy from here (starting with local..) and paste under the -------'s msg.Parent = game.Workspace msg.Text = ("PUT MESSEGE HERE")-- Put what you want to say in between the ""s wait(3)-- Change the wait if you want its the wait during the text that is up representing the next zombies msg:remove() game.Lighting.zombie1:clone().Parent = game.Workspace --Put your npc on lightning game.Workspace.zombie1:MakeJoints()--Change this to the name of your npc wait(20) game.Workspace.zombie1:remove()--Change this to the name of your npc
end end
jimmy.ClickDetector.MouseClick:connect(turnGhostly) --Replace this to the name of your part
|
|
|
| Report Abuse |
|
|
Ness123
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 331 |
|
|
| 10 Oct 2017 02:44 AM |
| make sure to insert a click detector in the part |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 05:56 AM |
this is an 09 script
goodness gracious get with the times
:Destroy() not :remove()
don't use messages don't use lighting don't use game.Workspace, use workspace
:Connect() not :connect()
i want to strangle u
#code error("you're*") |
|
|
| Report Abuse |
|
|