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

How do I make a script that moves a brick when a player touches it?

How can I make a brick that changes position when a player touches it? I've tried Position and frame and it has not worked please help.

1 answer

Make sure that the script is in the brick that is moving!!

local function OnTouch(hit)
		if(hit.Parent:FindFirstChild("Humanoid") ~= nil) then
		script.Parent.Postion = (coronets you want)
	end
end
script.Parent.Touched:Connect(OnTouch)

Also if this works make this question as answered

3 comments

0

Just a note: script.Parent.Position = Vector3.new(PositionX,PositionY,PositionZ)

0

I doubt that you even know how to script...

0

Please understand that coronets and coordinates are not even close to each other. A coronet is a crown.

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