(Answered) How Do I Create Instances From A Local Script For The Entire Server To See?
Asked by
6 years ago Edited 6 years ago
Today I tried to create a local script that creates new instances in the workspace for the entire server but unfortunately I don't understand how to communicate after the filtering enabled update and I wasted somewhere in between an hour and a half to 2 hours trying to figure it out using remote functions and events until I scrapped everything except the local script in one of the starter gui's, Here it is:
01 | script.Parent.MouseButton 1 Click:Connect( function () |
02 | local MusicFolder = Instance.new( "Folder" , workspace) |
03 | local SongId = Instance.new( "NumberValue" , workspace) |
04 | local Username = Instance.new( "StringValue" , workspace) |
05 | SongId.Value = script.Parent.Parent.TextBox.Text |
06 | Username.Value = script.Parent.Parent.Parent.Parent.Parent.Name |
07 | SongId.Parent = MusicFolder |
08 | Username.Parent = MusicFolder |
09 | SongId.Name = "SongId" |
10 | Username.Name = "Username" |
11 | MusicFolder.Parent = game.Workspace.MusicGenerator |
Could someone please show me how to make the folder and values spawn in the workspace for the entire server and not just for the client?