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

How do make a unancored part be ancored do something?

IDK any coding soooooooooooooooooooooooooooooooooooooooooooooooo...............................uhhhhhhhhhh.....................hmmmmmm...........yeah? Pls help me or els imma die.

2 comments

0

What?

0

put a script inside of a a part and type this: script.Parent.Anchored = true

2 answers

✓ Accepted answer

Uh, here?

function onTouched(hit)
	if script.Parent.Anchored == false then
		script.Parent.Anchored = true
	end
end

script.Parent.Touched:connect(onTouched)

So what you'll need to do is insert a regular Script in the part that will be your target. Inside of that Script, type:

local part = script.Parent

if part.Anchored == false then
part.Anchored = true
end

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