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 » Scripting Helpers
Home Search
 

Re: Help!! Doesnt work!!

Previous Thread :: Next Thread 
andrei012 is not online. andrei012
Joined: 05 Nov 2010
Total Posts: 279
29 May 2014 02:41 AM
local PrivateLand = game.Lighting.PrivateLand

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)

if msg:lower() == "private teleport" or msg:lower() == "ptele" then
if game.Workspace[player.Name .. "Land"] == false then
a = PrivateLand.clone()
a.Parent = Workspace
a.Name = player.Name .. ("Land")
a:MoveTo(Vector3.new(math.random(1000,100000),0,maht.random(1000,100000)))

wait(1)

player.Character.Torso.CFrame = CFrame.new(a.Baseplate.Position + Vector3.new(0,5,0))

end

if game.Workspace[player.Name .. "Land"] == true then
player.Character.Torso.CFrame = CFrame.new(a.Baseplate.Position + Vector3.new(0,5,0))
end
end
end)
end)


It doesnt teleport me or It doesnt make the model?? :C
Report Abuse
andrei012 is not online. andrei012
Joined: 05 Nov 2010
Total Posts: 279
29 May 2014 02:44 AM
Sorry,

local PrivateLand = game.Lighting.PrivateLand

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)

if msg:lower() == "private teleport" or msg:lower() == "ptele" then
if game.Workspace[player.Name .. "Land"] == false then
a.clone() ---------changed this
a.Parent = Workspace
a.Name = player.Name .. ("Land")
a:MoveTo(Vector3.new(math.random(1000,100000),0,maht.random(1000,100000)))

wait(1)

player.Character.Torso.CFrame = CFrame.new(a.Baseplate.Position + Vector3.new(0,5,0))

end

if game.Workspace[player.Name .. "Land"] == true then
player.Character.Torso.CFrame = CFrame.new(a.Baseplate.Position + Vector3.new(0,5,0))
end
end
end)
end)

still doesnt work
Report Abuse
Distinctable is not online. Distinctable
Joined: 02 Mar 2010
Total Posts: 305
29 May 2014 03:00 AM
If you would please tell me what you are trying to do,
I'll try and help you.
Report Abuse
andrei012 is not online. andrei012
Joined: 05 Nov 2010
Total Posts: 279
29 May 2014 03:04 AM
Theres a model in lighting and i want it to be cloned in workspace when a player said ptele

read the script too.
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
29 May 2014 03:08 AM
It should be a:clone() instead of a.clone()
Report Abuse
andrei012 is not online. andrei012
Joined: 05 Nov 2010
Total Posts: 279
29 May 2014 03:37 AM
I changed it and it still doesnt work
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