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

SIMPLE PART OVERLAPPING ISSUSE?

hi thank u for your time and effort I appreciate it I have a simple problem I to Prevent Overlapping With Anchored On? this is my code from Roblox def forums

	local part = Instance.new('Part')
	part.Parent = Workspace
	part.Anchored = true
	part.Position = Vector3.new(x,y,z)
	local part2 = part:clone()
	part2.Parent = Workspace
	part2.Anchored = false

but part2 does not spawn in part it spawns next to it here is an image of what I mean https://ibb.co/VV3Qy57 thank you.

1 answer

local part = Instance.new('Part')
part.Parent = Workspace
part.Anchored = true
part.Position = Vector3.new(x,y,z)
part.CanCollide = false -- makes it so it can go through the other part
local part2 = part:clone()
part2.Parent = Workspace
part2.Anchored = true -- makes it so it cant fall down
part2.CFrame = part.CFrame -- makes it so it goes to part1 its the same as position
part2.CanCollide = false -- makes it so it can go through the other part

2 comments

0

it works thanks you Darkwolfgameryr but i have a problem if a block is placed and has nothing under it the part2 falls dawn could u please help

0

I edited the script

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