This Local Script works in Studio, why not in Game?
I have this script:
02 | local sB = script.Parent.SetButton |
03 | local rB = script.Parent.RemoveButton |
04 | local char = game.Players.LocalPlayer.Character |
06 | sB.MouseButton 1 Click:connect( function () |
08 | if (char.LocalBin:FindFirstChild( "WaypointMarker" )) then char.LocalBin.WaypointMarker:Destroy() end |
09 | m = game.Lighting.WaypointMarker:Clone() |
11 | m.Parent = char.LocalBin |
13 | rB.MouseButton 1 Click:connect( function () |
14 | char.LocalBin.WaypointMarker:Destroy() |
Just to clarify the waypoint marker is a Part with a Script inside it that makes it spin, also sB and rB are text buttons. What it does is once you click the button it clones the Part to your Torso and then once you click the second button it removes it. If you click the second button twice it removes the first Part. This works fine in Studio but the Part doesn't show up in the actual game. At the moment you can test it here.