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

Spectate Gui Only Works in studio? Any help?

Asked by 9 years ago

Works in studio great :D, However not in actual gameplay.

Here is the script:

01cam = game.Workspace.CurrentCamera
02 
03local bar = script.Parent.Bar
04local title = bar.Title
05local prev = bar.Previous
06local nex = bar.Next
07local button = script.Parent.Button
08 
09function get()
10    for _,v in pairs(game.Players:GetPlayers())do
11        if v.Name == title.Text then
12            return(_)
13        end
14    end
15end
View all 57 lines...

2 answers

Log in to vote
1
Answered by 9 years ago

You must use a LocalScript to execute the code on the camera. A normal script can be used for the rest of the code, but it is impossible to manipulate the camera without using a LocalScript.

0
The entire script is on a local script though.... Are you saying I should split it up? CarterTheHippo 120 — 9y
0
No, and I'm sorry for the lack of info, but you should accommodate for leaving and joining players as well. TerrodactyI 173 — 9y
Ad
Log in to vote
0
Answered by
Tizzel40 243 Moderation Voter
7 years ago

is your game in experimental mode? if it is go to settings in studio (while in that specific game) and turn it off.that might help note : go to HOME and you will find settings there.

Answer this question