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

Falling Block Script And I Don't Know How To Find X,Y,Z Through A Script?

Asked by 6 years ago

This Is Pretty Simple But I'm Not So Good At Scripting I Want To Use Vecter3 To Make A Block Fall Down But I Want To Find What The X,Y,Z Coordinates Are So I Don't Have To Go And Type Different Coordinates For All The Blocks

Here My Code: wait(3) script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then script.Parent.Position = Vector3.new(The Coordinates Go Here) end end)

Thank You

0
You know how to use Vector3's before if statements? hiimgoodpack 2009 — 6y
0
No HamsterRunner67 2 — 6y
0
Also, please Do Not Capitalize Every Word Like Every Word Is A Proper Noun it just looks weird and i dont like it hiimgoodpack 2009 — 6y
0
^^ Yes please Do Not Capitalize Every Word Like This That Is Not A Proper Noun, it looks odd and makes you look "not as smart" abnotaddable 920 — 6y
0
But I'm Not Smart HamsterRunner67 2 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
script.Parent.Position.X
script.Parent.Position.Y
script.Parent.Position.Z
0
Thank You HamsterRunner67 2 — 6y
Ad

Answer this question