Getting an error that is incorrect

Hello. So I have this error in my game:
Expected identifier when parsing expression, got ‘/’

I know what this error means but when I look at the line of code that is throwing the error, the only thing there is an end.

I think it might be because the game isn’t updating because the error is only when I play the game outside of studio. I must have had a / there at one point when updating but got rid of it later. I have no idea why it isn’t updating the game.

Thanks!

Please share the code so we can help you better.

1 Like
local TeleportService = game:GetService("TeleportService")
local TweenService = game:GetService("TweenService")

local Van = script.Parent.VanBody
local Pad = script.Parent.Pad

local TWEEN_INFO = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, 
true)
local GOAL = {Position = Vector3.new(-34.534, 6.244, 23.164)}

local LEAVE_TWEEN = TweenService:Create(Van, TWEEN_INFO, GOAL)

local playersInVan = {}

LEAVE_TWEEN.Completed:Connect(function ()
	-- In case the van table didn't properly clear, do it again
    if #playersInVan > 0 then
    	table.clear(playersInVan)
     end
      
Pad.Script.Disabled = false
end)

Pad.Touched:Connect(function (hit)
    -- Make sure player is not in playersInVan table; if they aren't, add them
	if hit.Parent:FindFirstChild("Humanoid") then
    	table.insert(playersInVan, game.Players:GetPlayerFromCharacter(hit.Parent))
    end
end)

while true do -- Would use RunService instead, in my honest opinion
	if #playersInVan >= 1 and #playersInVan < 5 then
    	-- # of players greater than 1?
    	LEAVE_TWEEN:Play()
	    -- Disable pads
	    Pad.Script.Disabled =  true
	    local placeId = 6428301658
	    TeleportService:TeleportPartyAsync(placeId, playersInVan)
	    table.clear(playersInVan)
	    -- Wait a bit, reenable pads
	
    end -- THIS IS WHAT IS THROWING THE ERROR
    wait(1)
end

Can you try publishing the game?

1 Like

It already is published. Sorry for the trouble. I think what the issue is that the game isn’t updating.

Yes, can you try to publish it again?

1 Like

I’ve tried multiple times to update the game. But I keep getting this error.
So sorry for the trouble

EDIT: I just went into the game and now the error is gone!

Are you sure that this is the script with the issue?

2 Likes

Thank you both for the help! Idk what that was all about but thanks anyway!

1 Like