Can someone help?
local ToolInRegion = game.Workspace:WaitForChild("Regions")
local Found = false
while wait(1)do
for i,v in pairs(ToolInRegion:GetChildren())do
Found = false
local region = Region3.new(v.Position - (v.Size/2), v.Position + (v.Size/2))
local parts = game.Workspace:FindPartsInRegion3WithWhiteList(region, game.Players.LocalPlayer.Character:GetDescendants())
for _, part in pairs(parts)do
if part:FindFirstAncestor(game.Players.LocalPlayer.Name) then
print("Player was Found")
Found = true
break
else
Found = false
print("Player was not Found in region")
end
end
if Found == true then
game.Players.LocalPlayer.Backpack.Sunflower.LocalScript.Disabled = false
else
game.Players.LocalPlayer.Backpack.Sunflower.LocalScript.Disabled = true
end
end
end
I understand my problem, though idk how to fix it. Basically, it removes it from backpack and puts it into the characters model. How would I change
game.Players.LocalPlayer.Backpack.Sunflower.LocalScript.Disabled = false
else
game.Players.LocalPlayer.Backpack.Sunflower.LocalScript.Disabled = true
To fix it to the characters model?
