How to make sheer heart attack in jojo?

too make a part move to a player u use part:MoveToHumanoid?

Hello! From what you’ve posted I’m assuming you’re asking how to make a part move to a player. To do so you need to use TweenService.

You’ll basically need to do this:

local TS = game:GetService("TweenService")
TS:Create(--[[ADD AN INSTANCE HERE]], TweenInfo.new(Time), {CFrame = Part.CFrame})

Simply put, you’ll need to get tween the position of the part towards the Humanoid’s HumanoidRootPart (Well, you can use other parts, too, but this one’s mostly used)

In case you’re confused, please check the link I posted, it might explain it better than how I explained it.

I hope this helped.

1 Like

how to make it flw the closeset humanoid

I don’t think there is a method for Part named MoveToHumanoid, but there are many ways to make a part move to the player,

One way to make the part move smoothly is to use TweenService:

local TweenService = game:GetService("TweenService")
local part = workspace.Part

-- get character variable before
local finishPosition = character.HumanoidRootPart.Position

local TweenInfo = {
    1, -- Time
    Enum.EasingStyle.Linear, -- EasingStyle
    Enum.EasingDirection.Out, -- EasingDirection,
    1, --RepeatCount,
    false, -- reverse to initial position?
    0, -- TweenDelay
}

local Tween = TweenService:Create(part, TweenInfo, { Position = finishPosition })
Tween:Play()

Another way is to use BodyMovers, I suggest using BodyPosition:

local part = workspace.Part
local finishPosition = character.HumanoidRootPart.Position

local bodyPosition = Instance.new("BodyPosition")
bodyPosition.Position = finishPosition
bodyPosition.D = 10 -- amount of dampening
bodyPosition.P = 15 -- "aggressiveness" of the force being applied
bodyPosition.MaxForce = 1000 -- limit on the force

bodyPosition.Parent = part
1 Like

Flw the closeted Humanoid? Could you elaborate on it, please?

image

Do you mean like follow the player around when they move?

no i making a jojo game killer queen abiltiy sheer heart attack , when i place the move the thing follow nearest humanoid and explode dealing damage

i just want to know how to make the sheer heart attack follow people

Researched it a bit, and I think I get what do you mean.
I’m assuming that you want a small object to follow players around, and perhaps even shoot laser beams at them?

yeah i want to make it like that

In that case, you can just rig a model with a humanoid and give it an AI, instead of tweening it.

how to make a humanoid and give it an AI any API?

I recommend checking out Roblox’s guide to Pathfinding, you’ll probably find it useful.

https://developer.roblox.com/en-us/articles/Pathfinding