Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

script suddenly stops working without any giving any error in the output?

Asked by
ScuffedAI 435 Moderation Voter
6 years ago

I was working with the "SharingFunction" module script that is connected to the localscript and then suddenly when I hit play to test it, the localscript just stops working even thought I haven't touched it. I had tested it before and everything was just working fine and now it just suddenly stops. Its not giving me any errors in the output either.

At first I thought it was because the modules that it was trying to access were not loading or something. So I tried to remove the WaitForChild function and was hoping to get some kind of error. Still nothing.

I copied the script and moved it to a different localscript (because maybe the localscript itself could have been broken?)

In the end I restarted Rblx studio and thought that it could have maybe been some kind of bug. Still no luck.

Any help would be appreciated.

-- Inside the localscript
local Client = game:GetService("Players").LocalPlayer
local Mouse = Client:GetMouse()
local Face = {Front=Vector3.new(0,0,4),Left=Vector3.new(4,0,0),Right=Vector3.new(-4,0,0),Back=Vector3.new(0,0,-4)}
local LastTarget = nil

print("Works until here")

local ItemModule = require(script.Parent:WaitForChild("ModuleScript"))
local Function = require(script.Parent:WaitForChild("SharingFunctions"))

print("Doesn't want to go any further than this.")

local Ceil = Function.Ceil
local GetBoxFacing = Function.GetBoxFacing
local FindItemByPos = Function.FindItemByPos

function LoadMap()
    -- do some code here.
end
LoadMap()
0
What's inside the module scripts? SebbyTheGODKid 198 — 6y
0
The "SharingFunctions" contains some random functions and the "ModuleScript" contains info about some object properties. I have made the game uncopy locked so if you want to see more details of the scripts then you can grab a copy of it. The game is called "Block Pushing Challenge" ScuffedAI 435 — 6y
0
Localscript's cannot require ModuleScripts getzedotus 0 — 6y

Answer this question