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
have you tried a waitforchild
^ That, and he's storing things inside of Lighting.