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: so im new to scripting would this work

Previous Thread :: Next Thread 
kiran10000 is not online. kiran10000
Joined: 12 Sep 2009
Total Posts: 22
04 Oct 2012 12:55 AM
trying to make spawn kiiler
game.workspace.player.head:remove()
while true do
N = N +1
wait(3)
print(N)
end
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
04 Oct 2012 01:02 AM
'workspace' needs to be 'Workspace. 'head' needs to be 'Head'.
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
04 Oct 2012 06:32 AM
while wait() do
p = game:GetService("Players")
for _,v in pairs (p:GetPlayers()) do
if v.Character:findFirstChild("Head") then
v.Character.Head:Destroy()
end end end

--Spawnkills forever.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
04 Oct 2012 07:31 AM
Also, you may not want to use :Remove(), it is deprecated. Meaning ROBLOX doesn't support it anymore, they want you to use :Destroy() instead, but you can still use :Remove().
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