|
| 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
|
  |
| 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 |
|