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

Tool gets cloned without scripts from Lighting ( Easy? )

Asked by 4 years ago

A local script inside StarterGui

function Owned()
    local all = game.Lighting.GravityCoil:Clone()
        all.Parent = game.Players.LocalPlayer.Backpack
end

It places the tool in the player's inventory, but the scripts don't (basically just clones the handle of the tool or something)

1 answer

Log in to vote
1
Answered by 4 years ago

scripts won't clone if the tool is in lighting. ServerStorage was created for a reason. Implement a remote which fires the server, then have the server give the player the tool.

Ad

Answer this question