Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
h5148 -93
5 years ago
Edited 5 years ago

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.

Closed as Not Constructive by BlackOrange3343

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
TNTeon -1
5 years ago

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

0
Just a note: script.Parent.Position = Vector3.new(PositionX,PositionY,PositionZ) JakyeRU 637 — 5y
0
I doubt that you even know how to script... DeceptiveCaster 3761 — 5y
0
Please understand that coronets and coordinates are not even close to each other. A coronet is a crown. DeceptiveCaster 3761 — 5y
Ad