Script error without any message or line

  1. What do you want to achieve? Find why it is erroring

  2. What is the issue? It errors out with no line indicator or message YET works perfectly fine inside studio

  3. What solutions have you tried so far? Only thing I found on the developer hub about this is a topic about the same issue but no answers

1 Like

Do you mind showing us the script?

here but i dont think it really matters since it works in studio

--!nocheck
local sequence:boolean = false
local TweenService = game:GetService("TweenService")
local connection:RBXScriptConnection
local seat
local runservice = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
function boom()
	local model:Model = seat:FindFirstAncestorOfClass("Model")
	sequence = true
	local goal = {Volume = 1}
	local tweeninfo = TweenInfo.new(2)
	local tween = TweenService:Create(script.Sound,tweeninfo,goal)
	script.Sound:Play()
	tween:Play()
	tween.Completed:Wait()
	for i,v2 in pairs(model:GetChildren()) do
		if v2.Name == "rightwing" then
			v2.Material = Enum.Material.Neon
			v2.Color = Color3.fromRGB(255,100,0)
			for i,v in pairs(ReplicatedStorage.Fire:GetChildren()) do
				v:Clone()
				v.Parent = v2
			end
		elseif v2.Name == "rightpanel" then
			v2.Color = Color3.fromRGB(255,150,0)
			model.Motor:Destroy()
		end
	end
	task.wait(1)
	for i,v in pairs(model:GetChildren()) do
		if v.Name == "rightwing" then
			v.WeldConstraint:Remove()
		elseif v.Name == "rightpanel" then
			v.HingeConstraint:Remove()
		end
	end
	script.Sound:Stop()
end
local debounce = false
function loop()
	if not debounce then
		debounce = true
		if not sequence then
			local speed = seat.CFrame.LookVector:Dot(seat.Velocity)
			if speed >= 370 then
				boom()
				sequence = true
			end
		end
		task.wait(0.5)
		debounce = false
	end
end


local character = script.Parent
local humanoid:Humanoid = character:WaitForChild("Humanoid")
local function seated(active, currentSeat)
	if not active then
		if connection == nil then return end
		connection:Disconnect()
		connection = nil
	elseif currentSeat.Name == "planeexp" then
		seat = currentSeat
		connection = runservice.PostSimulation:Connect(loop)
	end
end
humanoid.Seated:Connect(seated)

I found a post about it, try going through this and then come back if none of this works.

That is the exact post i found when trying to fix it and nothing works.

Oh, I’ve never had this happen to me. Sorry but I don’t know what to do.

nvm i fixed it it was because i used a class conversion plugin on the script

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.