Why doesn't this work online?
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 |
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 |
12 | Overlay.ImageTransparency = Overlay.ImageTransparency - 0.1 |
17 | script.Parent.Selected.Value = false |
18 | sword.Parent = script.Parent |
19 | script.Parent.Deselect:Play() |
23 | Overlay.ImageTransparency = Overlay.ImageTransparency + 0.1 |
30 | function onKeyPress(inputObject, gameProcessedEvent) |
31 | if inputObject.KeyCode = = Enum.KeyCode.One then |
37 | function onKeyPress 2 (inputObject, gameProcessedEvent) |
38 | if inputObject.KeyCode = = Enum.KeyCode.Two then |
44 | if script.Parent.Selected.Value = = true then |
46 | script.Parent.Selected.Value = false |
47 | sword.Parent = script.Parent |
48 | script.Parent.Deselect:Play() |
50 | Overlay.ImageTransparency = Overlay.ImageTransparency + 0.1 |
56 | game:GetService( "UserInputService" ).InputBegan:connect(onKeyPress) |
57 | game:GetService( "UserInputService" ).InputBegan:connect(onKeyPress 2 ) |