|
| 29 Sep 2012 01:02 PM |
The script:
local passId = 93728419 local Location = CFrame.new(2123,93.4,-19)
function authenticate(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end
script.Parent.Touched:connect(function(hit) if game.Players:FindFirstChild(hit.Parent.Name) then if authenticate(game.Players[hit.Parent.Name]) then hit.Parent.Torso.CFrame = Location end end end)
It worked, and now I want a script that teleports you, but you don't need a game pass. If I need to remove certain lines, which? Help would be appreciated. ^_^
-hay is 4 horsies- |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:11 PM |
Or would I need a different script?
Bump.
-hay is 4 horsies- |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:20 PM |
local Location = CFrame.new(2123,93.4,-19) script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h(~=nil) then hit.Parent.Torso.CFrame = Location end end)
|
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:21 PM |
local Location = CFrame.new(2123,93.4,-19) script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h(~=nil) then hit.Parent.Torso.CFrame = Location end end) --i think that will work
|
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:21 PM |
Alright, I'll try that out. I'll post output if it doesn't work. Thanks
-hay is 4 horsies- |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 29 Sep 2012 01:27 PM |
Hmm, that does not work.
The output:
Workspace.citytele.Script:1: '=' expected near 'Location'
Is there supposed to be two (==) equal symbols?
Like this
local Location == CFrame.new(2291, 232.3, -3649) --you only had one script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h(~=nil) then hit.Parent.Torso.CFrame == Location end end)
-hay is 4 horsies- |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2012 01:30 PM |
Okay @Chop
Tried that, and now the output is...
Workspace.citytele.Script:4: unexpected symbol near '~='
-hay is 4 horsies- |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:35 PM |
script.Parent.Touched:connect(function(c) if game:GetService("Players"):GetPlayerFromCharacter(c.Parent)then c.Parent:MoveTo(Vector3.new(2291,232.3,-3649)) end end) |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:39 PM |
| ugh vector3 fails NOT A LOCAL VARIABLE... forgot. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 01:48 PM |
script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild("Torso") if h ~= nil then h.CFrame = CFrame.new(Vector3.new(2291, 232.3, -3649)) end end) --fact: works
|
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|