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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: *subject title cannot be more than 60 characters*

Previous Thread :: Next Thread 
TheWarmFurryFox is not online. TheWarmFurryFox
Joined: 17 Mar 2011
Total Posts: 6059
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
TheWarmFurryFox is not online. TheWarmFurryFox
Joined: 17 Mar 2011
Total Posts: 6059
29 Sep 2012 01:11 PM
Or would I need a different script?

Bump.

-hay is 4 horsies-
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
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
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
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
TheWarmFurryFox is not online. TheWarmFurryFox
Joined: 17 Mar 2011
Total Posts: 6059
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
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
29 Sep 2012 01:22 PM
soz post twice
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
29 Sep 2012 01:25 PM
work?
Report Abuse
TheWarmFurryFox is not online. TheWarmFurryFox
Joined: 17 Mar 2011
Total Posts: 6059
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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
29 Sep 2012 01:28 PM
1 = for line 1 and 5
Report Abuse
TheWarmFurryFox is not online. TheWarmFurryFox
Joined: 17 Mar 2011
Total Posts: 6059
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
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
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
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
29 Sep 2012 01:39 PM
ugh vector3 fails NOT A LOCAL VARIABLE... forgot.
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
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 is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
29 Sep 2012 01:55 PM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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