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

Players.fshduia.PlayerGui.LocalScript:1: Expected '(' when parsing function, got ')'? [SOLVED]

Asked by 4 years ago
Edited 4 years ago

Script: game.ReplicatedStorage:WaitForChild("Cutscene1")OnClientEvent:Connect(function) if script.Done.Value == false then script.Done.Value = true local camera = game.Workspace.CurrentCamera camera.CameraType = "Scriptable" camera:Interpolate(game.Workspace.part1.CFrame, game.Workspace.part2.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.part2.CFrame, game.Workspace.part3.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.part3.CFrame, game.Workspace.part4.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.part4.CFrame, game.Workspace.part5.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.part5.CFrame, game.Workspace.part6.CFrame, 2) wait(2) camera.CameraType = "Custom"

end

end)

Error comes up when trying to view cutscene.

1 answer

Log in to vote
0
Answered by
Yukogan 72
4 years ago
Edited 4 years ago

Hi. You forgot an ( at line 1 and a point between ("Cutscene1") and OnClientEvent

game.ReplicatedStorage:WaitForChild("Cutscene1").OnClientEvent:Connect(function() 
    if script.Done.Value == false then 
        script.Done.Value = true 

        local camera = game.Workspace.CurrentCamera 

        camera.CameraType = "Scriptable" 
        camera:Interpolate(game.Workspace.part1.CFrame, game.Workspace.part2.CFrame, 2) 
        wait(2) 
        camera:Interpolate(game.Workspace.part2.CFrame, game.Workspace.part3.CFrame, 2) 
        wait(2) 
        camera:Interpolate(game.Workspace.part3.CFrame, game.Workspace.part4.CFrame, 2)
        wait(2) 
        camera:Interpolate(game.Workspace.part4.CFrame, game.Workspace.part5.CFrame, 2) 
        wait(2) 
        camera:Interpolate(game.Workspace.part5.CFrame, game.Workspace.part6.CFrame, 2) 
        wait(2) camera.CameraType = "Custom"


    end
end)
0
thanks! just going to try Fshduia 9 — 4y
0
This is happening now, Part1 is not a valid member of Workspace with your script Fshduia 9 — 4y
0
Oh sorry. I did it with capital letters. You have to change the P's of the part with a lowercase letter. Yukogan 72 — 4y
0
I found that out lol, thanks tho! Fshduia 9 — 4y
Ad

Answer this question