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

How to position items using scripts using specific player body parts?

Asked by 2 years ago

So position items through scripts has been a problem ever since I started coding. I don't know how to position something so a bit of context into my problem, I recently had an idea of trying to make the iconic EXPLOSION! from konosuba (because I find it to be funny and the graphics are just a chef's kiss my opinion) but I'm having troblue position the second circle because in the original version (I do reliaze that there a many versions of this move) there a magic circle underneath Megumin's feet and one just above her head and that's the one I'm having trouble with the head one position.

Here is the reference link : https://www.youtube.com/watch?v=jar1LTxxAeM

0
I don't understand, can you explain more? User#47934 5 — 2y
0
@ryanzhzh I can post a video of what I mean. Sorry about that. II_Goodlu 8 — 2y
0
you can position sometihng above the head by using `Part.CFrame = character.Head.CFrame + Vector3.new(0,5,0)`. If you anchor it, it won't fall or move. Miniller 562 — 2y
0
Ohhh, I was using position lol. Thanks I will try it. II_Goodlu 8 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Hello,

What you can do is design the circles in Blender or In Studio and connect it to an Event (can be a touched Event, tool clicked Event etc) then when done building u can attach the Models by Welds. The script will be similar to the one below

local Weld = Instance.new("Weld")
Weld.Part1 = -- Put the Circle reference here
Weld.Part2 = -- Put the character reference here
Weld.Parent = Part1

if you want the Circle to spin what you can do is

local Circle = -- Circle Reference

while wait(0.05) do
Circle.CFrame = Circle.CFrame*CFrame.Angles(0,0.1,0)
end

I hope this helps BUT this scripts above will not work its just to give an Idea what you are doing!

Ad

Answer this question