|
| 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 |
|
|
|
| 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 |
|
|
|
| 26 Mar 2017 11:40 AM |
i didnt understand the tags can you send me it directly
|
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 11:40 AM |
you have capitalization errors
whats gonna work, teamwork! |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 11:42 AM |
Lua is case sensetive. so "Parent", "Touched", "FindFirstChild", "CFrame" are all capitalized |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Mar 2017 11:44 AM |
and then i put that script into the part im using for the spawn location
|
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 11:45 AM |
and its ting == 0 not ting = 0 right?
|
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 01:22 PM |
= for setting variables == for boolean conditions |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2017 01:41 PM |
Example:
local hello = (num)
if hello == (num) then
end |
|
|
| Report Abuse |
|
|