IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 31 May 2012 08:27 PM |
door = script.Parent
function onTouch(hit) if hit.Parent == nil then return end local h = hit.Parent:FindFirstChild("Humanoid") me = hit.Parent.Name print(me) if game.Players[me].tp.Value ~= 1 then print(me) if h ~= nil then print(me) hit.Parent.Torso.Velocity=door.CFrame.lookVector * 200 -- Push the Player back end end end
door.Touched:connect(onTouch)
------ the output that comes out in solo mode is:
Player Player Colonial Colonial is not a valid member of Players Script "Workspace.ONEWAY.PushPack", Line 8 stack end
------
WHO THE HECK IS COLONIAL?! |
|
|
| Report Abuse |
|
|
|
| 31 May 2012 08:29 PM |
| A free model script you got, that is. |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 31 May 2012 08:31 PM |
| Well duuurr, I didn't make the entire script but I'm still working with it.. I've been using this same script since last year, I never had a problem with it until I added "if game.Players[me].tp.Value ~= 1 then" |
|
|
| Report Abuse |
|
|
|
| 31 May 2012 08:34 PM |
"print(me) if game.Players[me].tp.Value ~= 1 then"
Define me. Wheres the variable?? |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 31 May 2012 08:36 PM |
| Colonial is the name of the thing that hit the door. :P |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 31 May 2012 08:36 PM |
| >>>>> me = hit.Parent.Name <<<<<< |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
| |
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 31 May 2012 08:38 PM |
| I don't understand where Colonial came from, NOTHING in my place is named Colonial, nor is there a humanoid named Colonial... |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 31 May 2012 08:42 PM |
First off, NOU.organ, for using a free modeled script, then posting it on scripting helpers. Second, there's no other way Colonial could print from that script, so Yes.me, NO.u. Third, NOU.organ! |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 31 May 2012 08:48 PM |
ASDFGHJKL LOL
It's my stupid hat! It's size is large -_- wtf does NOU.organ mean?
and I don't care if it's a free script. I'm not wasting my time making my own script! I only learned how to script recently! Like really, who makes their own follow script, and etc these days? They're literally all the same! |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 31 May 2012 08:51 PM |
"who makes their own follow script" Me. while(wait())do pcall(function() p1 = game.Players["ilill"] p2 = game.Players["1Topcop"] p2 = p2.Character.Torso p1.Character.Humanoid:MoveTo(p2.Position,p2) end)end |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 31 May 2012 08:53 PM |
LOL I stand corrected btw I fixed my script >:P |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
| |
|