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: Script stops working once published

Previous Thread :: Next Thread 
john269962 is not online. john269962
Joined: 25 Jun 2008
Total Posts: 166
21 Jun 2016 09:59 PM
So I have brick with a script inside of it. It's just a TouchHandler type script. FE is enabled in the place and this works flawlessly in Solo and Test Server. However once I publish it it becomes a problem. I can only guess something I'm using is depreciated without me knowing or there is some weird race condition caused by lag?

Hierarchy:
-Brick
|-Script

script-----------------------------------------------------------

local touched = false

script.Parent.Touched:connect(function(part)
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if (player and not touched) then
touched = true
game.ServerScriptService.Functions.ConvertBricksToPoints:Invoke(player, 2)
wait(3)
touched = false
end
end)
-------------------------------------------------------------------
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
21 Jun 2016 11:09 PM
I have ran into this same issue before. I ended up having to modify the script, and instead of testing the script in test mode or soloserver, publish, and check in the actual published version of the place. press F9 or type /console and go to the ServerLog to see any script errors.
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