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: Spawns Script

Previous Thread :: Next Thread 
Bobby96483 is online. Bobby96483
Joined: 05 May 2016
Total Posts: 464
26 Mar 2017 11:35 AM
I cant seem to see what the problem is for my spawn location script
Ting = 0
Script.parent.touched:connect(function(p)(edited)
If p.parent:findfirstchild("torso") and ting == 0 then
Ting = 1
pParent.torso.Cframe=script.parent.parent["2"].Cframe vector3.new (0,5,0)
Ting = 0
End
End)
Can anyone help?




Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
26 Mar 2017 11:38 AM
Ting = # ######################################### If p.Parent:findfirstchild(Ttorso") and Ting == 0 then Ting = 1 p.Parent.Torso.CFrame=script.Parent.Parent["2"].CFrame + Vector3.new(0,5,0) wait() Ting = 0 end end) whats gonna work, teamwork!
Report Abuse
Bobby96483 is online. Bobby96483
Joined: 05 May 2016
Total Posts: 464
26 Mar 2017 11:40 AM
i didnt understand the tags can you send me it directly




Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
26 Mar 2017 11:40 AM
you have capitalization errors


whats gonna work, teamwork!
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
26 Mar 2017 11:42 AM
Lua is case sensetive.
so "Parent", "Touched", "FindFirstChild", "CFrame" are all capitalized
Report Abuse
Bobby96483 is online. Bobby96483
Joined: 05 May 2016
Total Posts: 464
26 Mar 2017 11:43 AM
oh alright thx



Report Abuse
Bobby96483 is online. Bobby96483
Joined: 05 May 2016
Total Posts: 464
26 Mar 2017 11:44 AM
and then i put that script into the part im using for the spawn location



Report Abuse
Bobby96483 is online. Bobby96483
Joined: 05 May 2016
Total Posts: 464
26 Mar 2017 11:45 AM
and its ting == 0 not
ting = 0 right?



Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
26 Mar 2017 01:22 PM
= for setting variables
== for boolean conditions
Report Abuse
Disaster_Scripts is not online. Disaster_Scripts
Joined: 10 May 2016
Total Posts: 2310
26 Mar 2017 01:41 PM
Example:

local hello = (num)

if hello == (num) then

end
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