Sounds complicated…
Is there I way I can use a part and check if the player is touching that?
No local
less lag in all Although it will be a single-player game.
Ah, I see then. Hope this works out for you nevertheless!
My method should work in a local script as I am using it in a fighting game I’m working on.
I will also put an example of the beam method.
Lets say i was making a pushable box onto button, this is how I would do it.
script.Parent.Touched:Connect(function(hit) -- detects if its hit, very unreliable so i would recommend region3
if hit:FindFirstChild("Beam") then -- if the box has a beam in it then it will execute what the button does
-- Code goes in here
end
This is the beam method thing I spoke about, should work with your script.
ah, know I see!
My only question is how will this beam method go with region 3.
They should explain in the tutorial I sent but I will explain it here (this is how they did it in the tutorial btw).
local partsinregion = workspace:FindPartsInRegion3(your region, nil, 1000 ) -- finds parts in the region, what your region is, what you want to ignore, and how many parts you want to check
for i, part in pairs(partsinregion) do --loops through all the parts
if part:FindFirstChild("Beam") ~= nil then -- if the part has the beam
--code here
end
end
ahh, know I get it!
Sorry, I forgot to check the videos thanks again the guy you sent me is very good at tuts!
No problem and good luck with your project!