Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Thing is not a valid member of local script? [SOLVED]

Hi, roblox is being dumb and like I don't know why it's doing this. Can anyone help me figure this out? (I did script.Parent.THING and it says not valid member of tool.. so idk what's going on)

local toolToBeCloned = game.Lighting.StrongFist.Fist
local player = game.Players.LocalPlayer
local character = player.Character

script.THING.OnClientEvent:connect(function(plr) -- trying to locate this (this can be fired for some reason and yet not able to locate it in local script??
    wait(.3)
    print("lo")
    for i,v in pairs(player.Backpack:GetChildren()) do
        if v.ClassName == "Tool" and v.Name ~= script.Parent.Name then
            v:Destroy()
        end
    end
    local clone1 = toolToBeCloned:Clone()
    clone1.Parent = player.Backpack
    script.Parent:Destroy()
end)

picture: https://cdn.discordapp.com/attachments/180763895592386560/765618523690631188/bruhrea.PNG

2 comments

0

have you tried a waitforchild

0

^ That, and he's storing things inside of Lighting.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.