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

Don't know how to fix what output gave me?

Asked by 7 years ago
Edited 7 years ago

Output: 12:05:05.820 - ServerScriptService.SSJScript:31: '}' expected (to close '{' at line 29) near 'Parent'

game is filtering enabled this is a script in serverscriptservice that recieves the event when a localscript in startercharacterscripts fires it.

left out most of it so it won't get leaked only left part that needed fixing

THIS SCRIPT ISNT THE SCRIPT I STARTED WITH WHEN I MADE THIS QUESTION

001--//Variables
002hatsRemoved = false
003local rp = game:GetService("ReplicatedStorage")
004local ssjHair = rp:WaitForChild("SSJ1").SSJ
005local ssjParticles = rp:WaitForChild("SSJ1").SSJparticles
006--local camScript = script.camScript
007--//Instances
008local anim = Instance.new("Animation")
010animTrack = nil
011local offanim = Instance.new("Animation")
013--//Events
014--local ssjEvent = rp:WaitForChild("SSJEvent")
015--local offEvent = rp:WaitForChild("SSJOffEvent")
View all 194 lines...
0
Yes if you have FilteringEnabled on then it is due to the localscript since whatever you're creating with your localscript isn't being created in the server and to everyone else. Ultimate_Piccolo 201 — 7y
0
Is it possible to convert this into a script? Godlydeathdragon 227 — 7y
0
Yes if you want it to be filtering enabled. You need to fire a remote event from the local script using :FireServer(). Then you'll need to listen for when the event is fired with a normal script using .OnServerEvent Ultimate_Piccolo 201 — 7y
0
Thanks, It worked. Godlydeathdragon 227 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

To help with what's in the comments, I'm not sure how good you are with FE and scripting as a whole but I wrote some of the server side for you, condensing it a bit.

001-- // Server Script \\
002-- // Variables \\
003local replicatedStorage = game:GetService("ReplicatedStorage")
004local hatsRemoved = false
005local event = Instance.new("RemoteEvent")
006local rfunction = Instance.new("RemoteFunction")
007event.Parent = game.ReplicatedStorage
008event.Name = "event"
009rfunction.Name = "function"
010 
011local lightningValues = {
012    -- 1
013    {
014    Name = "EndPoint";
015    Parent = game.Workspace.partChooserEnd;
View all 160 lines...
0
output says 23:23:28.943 - ServerScriptService.SSJScript:31: '}' expected (to close '{' at line 29) near 'Parent' what did i do wrong? script above is replaced with new script. Godlydeathdragon 227 — 7y
Ad

Answer this question