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
 

Help with a wait/kill/repeat script

Previous Thread :: Next Thread 
ibi567 is not online. ibi567
Joined: 17 May 2013
Total Posts: 100
13 Aug 2016 04:31 PM
Hello, I am a script kiddie so please do not expect my script to be good. This is my first script, and I want to know how to repair it. Here is how it goes:

wait 28 then
print 'Time's up!' then wait for Child (Sasha) then
repeat

Sasha is:
localscript if Player child = Humanoid then
game.Workspace.remove(Torso, Head)
end

Could you tell me how to make these 2 work?
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
13 Aug 2016 05:02 PM
I hope i understood it correctly...

while wait(28) do
print("Time's up!")
script.Parent:WaitForChild("Sasha") --I guess Sasha is in same place where script is?
end

In Sasha:
plr = game.Players.LocalPlayer
if plr.Character then
hum = plr.Character:FindFirstChild("Humanoid")
if hum then
game.Workspace.Torso:remove()
game.Workspace.Head:remove()
end
end


Report Abuse
ibi567 is not online. ibi567
Joined: 17 May 2013
Total Posts: 100
13 Aug 2016 06:09 PM
Thanks alot, much appreciated.
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