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

Script Works in play solo but on online mode any help?

Asked by 8 years ago

whats wrong with the script?

local player = game.Players.LocalPlayer
local tool = game.ReplicatedStorage.P250lAZER

script.Parent.MouseButton1Down:connect(function()
    if player:FindFirstChild("Backpack") then
        tool:Clone().Parent = player.Backpack
    script.Parent.Parent.Parent.Parent.Visible = false 
    end
end)


local player = game.Players.LocalPlayer
local tool = game.ReplicatedStorage.AK
script.Parent.MouseButton1Down:connect(function()
    if player:FindFirstChild("Backpack") then
        tool:Clone().Parent = player.Backpack
    script.Parent.Parent.Parent.Parent.Visible = false 
    end
end)
0
Do you have FilteringEnabled? Check the properties in Workspace Necrorave 560 — 8y

Answer this question