Its very weird, I have tried to fix it with some problems it might have caused it in the scripts... If you need the scripts, here they are:
01 | script.Parent.MouseButton 1 Down:connect( function () |
02 |
03 | plr = game.Players.LocalPlayer |
04 | if script.Parent.Parent.Parent.Parent.Parent.Primary.Value = = "Gun" then |
05 | for i, v in pairs (plr.Backpack:GetChildren()) do |
06 | if v:IsA( "Tool" ) and v.Primary.Value = = true and v.Primary ~ = nil and v.Name = = "Gun" then |
07 | v:Destroy() |
08 | print ( "Destroyed" ) |
09 | elseif v:IsA( "Tool" ) and v.Primary.Value = = true and v.Primary ~ = nil and v.Name = = "Gun" and v.Parent = = game.Players.LocalPlayer.Character then |
10 | v:Destroy() |
11 | print ( "Destroyed from Character" ) |
12 |
13 | end end end |
14 | for i, v in pairs (game.Players.LocalPlayer.PlayerGui.inventory:GetChildren()) do |
15 | if not found 1 then |
and second one:
01 | local found 1 = false |
02 |
03 | script.Parent.MouseButton 1 Click:connect( function () |
04 | if game.ReplicatedStorage.Folder:FindFirstChild( "Gun" ) then |
05 | c = game.ReplicatedStorage.Folder.Gun:Clone() |
06 | end |
07 | if game.ReplicatedStorage.Folder:FindFirstChild( "Bow" ) then |
08 | b = game.ReplicatedStorage.Folder.Bow:Clone() |
09 | end |
10 | plr = game.Players.LocalPlayer |
11 | if script.Parent.Parent.Parent.Parent.Parent.Primary.Value = = "Gun" then |
12 | for i, v in pairs (game.Players.LocalPlayer.Backpack:GetChildren()) do |
13 | if not found 1 then |
14 | if v:IsA( "Tool" ) then |
15 | if v.Primary.Value = = true then |
The answer could be that it is not a local script since it works on studios, try it and tell me.
I don't think I could fix a problem like this without the actual model, which i'm just going to assume is a GUI. It could be that you used normal Scripts, instead of LocalScripts. Or maybe it's an actual scripting error, I don;t really know. To be honest, I just can;t be bothered reading that whole script...
Well, I hope this helped, which I doubt it did...