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

How do break a camera interpolation loop when a button is pressed???

Asked by 5 years ago
Edited 5 years ago

I would like to make such a Camera Script (please click here and play to see the Main Menu), but all my attempts to copy it have failed. Do you have a solution please? --Edited New: I finally managed to imitate the loop, but that with the PlayButton that the loop should break once clicked still does not work. Here is the script:

01-- made 100% of Eternalovefan_32--
02--script in workspace
03local RE = game.ReplicatedStorage.RE
04 
05game.Players.PlayerAdded:Connect(function(player)
06    wait(10)
07    RE:FireClient(player)
08end)
09 
10--local script in StarterGui
11game.ReplicatedStorage.RE.OnClientEvent:Connect(function()
12    local camera = workspace.CurrentCamera
13    local Player = game.Players.LocalPlayer
14    camera.CameraType = "Scriptable"
15    while true do  
View all 40 lines...

Did you find the mistake ???

0
"Scripting Helpers is a good resource when issues arise, but we are not here to script your game for you." Unhumanly 152 — 5y
0
Yes you have right. I forgot the script. Eternalove_fan32 188 — 5y
0
tomorrow will i add my broken script. Eternalove_fan32 188 — 5y
0
here Eternalove_fan32 188 — 5y

Answer this question