I’m trying to get a Cutscene for my game, and for some reason, it says part of the syntax is wrong.
Here is my script:
local cscript = script:WaitForChild(“CutsceneScript”)
if script:findFirstChild(“SkipCutsceneGuiValue”) then
script.SkipCutsceneGuiValue.Parent = cscript
script.SkipCutsceneGui.Parent = cscript
end
function onPlayerEntered(player)
repeat wait () until player.Character
local new_script = script.CutsceneScript:clone()
new_script.Parent = player.Character
new_script.Disabled = false
end
This is a actually a pretty common mistake a lot of people make. All it is saying is that when you have an open bracket you need to close it so that it isn’t confusing for the computer to read.
Idk if the error is mistaken and I’m no expert, but isn’t ‘repeat wait () until player.Character’ supposed to be ‘repeat wait() until player.Character’?
Without the space between wait and the brackets…?
Lua usually doesn’t care about optional whitespace; most whitespace-related syntax errors are for missing whitespace.
@BondiHotelsHolder I can’t see any obvious errors in the script you posted, is that really the full script? You might also want to use a code block to post your script, like this: