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 » Scripters
Home Search
 

Re: What is my error?

Previous Thread :: Next Thread 
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
05 May 2017 10:18 PM
I've been trying to figure this out, and I really would rather do it than compare a free model to it. Can you take a look and tell me what's wrong with this code? local TeleportService = game:GetService("TeleportService") local level1Id = ######### local level2Id = ######### function onClicked(playerWhoClicked) local player = game.Players:GetPlayerFromCharacter(playerWhoClicked.Parent) if player then TeleportService:Teleport(level1Id, player) end end script.Parent.MouseButton1Click:connect(onClicked)
Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
05 May 2017 10:19 PM
Ugh... why does roblox compress your lines...
Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
05 May 2017 10:24 PM
local TeleportService = game:GetService("TeleportService") local level1Id = ######### local level2Id = ######### function onClicked(playerWhoClicked) Local player = game.Players:GetPlayerFromCharacter(playerWhoClicked.Parent) if player then TeleportService:Teleport(level1Id, player) end end script.Parent.MouseButton1Click:connect(onClicked) Hope that's better.
Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
05 May 2017 10:33 PM
bump
Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
05 May 2017 10:42 PM
Ugh, thought someone in the scripting section could help me with a script.
Report Abuse
fireboltofdeath is not online. fireboltofdeath
Joined: 01 Oct 2013
Total Posts: 35
05 May 2017 10:45 PM
Someone will if you wait. Wait a day and you'll have a response. But I can't do much with censored code. You can try PMing me it, to see if it doesn't censor.
Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
05 May 2017 10:53 PM
The only part censored is the ID's though.
Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
06 May 2017 11:12 AM
Bump
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
06 May 2017 11:19 AM
You didn't even tell us the error
Report Abuse
Salinas23 is not online. Salinas23
Joined: 28 Dec 2008
Total Posts: 37141
06 May 2017 11:33 AM
mousebutton1click does not return anything


I have a spider on my back.
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
06 May 2017 11:33 AM
Of course it doesn't, it's an event...


Report Abuse
FlamingPiano is not online. FlamingPiano
Joined: 09 Jan 2011
Total Posts: 418
06 May 2017 12:10 PM
Someone helped me. The error was that it wasn't working.
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
06 May 2017 05:49 PM
Is it a local script or server script?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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