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

Why doesn't this work online?

Asked by
fdfxd 50
9 years ago

It worked just fine in solo

the output says nothing, used to say "Stockoverlay is not a member of stockcore" even though it clearly was a member(and it was loaded btw) What is going on is this some kind of bug?

01    sword = script.Parent.Sword
02    script.Parent:WaitForChild("Stockoverlay")
03    Overlay = script.Parent.Stockoverlay
04 
05function selected()
06 
07    if script.Parent.Selected.Value == false then
08        script.Parent.Selected.Value = true
09        script.Parent.Select:Play()
10        sword.Parent = game.Players.LocalPlayer.Character
11    for i = 0,1,0.1 do
12        Overlay.ImageTransparency = Overlay.ImageTransparency - 0.1
13        wait(0.01)
14    end
15 
View all 57 lines...
0
Try putting it in a local script of already put it in a server script iSvenDerp 233 — 9y
0
Try a local script because using keydowns has to deal with a players keyboard do that's local iSvenDerp 233 — 9y
0
It already is fdfxd 50 — 9y

Answer this question