I have been making a game and i wanted to make a skill that spawns a dummy that mimics the player
Like this:
Clip from vee on Youtube
How i can make a script for that?
I have been making a game and i wanted to make a skill that spawns a dummy that mimics the player
Like this:
Clip from vee on Youtube
How i can make a script for that?
Place a humanoid and copy animations from characterscripts (you can only see the file when running your expierience) and place them into a new script under the model. Then make it move in the same direction.
local player = game.Players:WaitForChild('VonickTW') -- PUT IN PLAYER YOU WANT SELECTED IN PLACE OF VONICKTW--
local humanoid = script.Parent
-- WAITS FOR SERVER TO LOAD--
wait(4)
-----------------------------
while wait(0.001) do
local VectorPos = player.Character.HumanoidRootPart.Position
humanoid.HumanoidRootPart.Position = VectorPos - Vector3.new(0,0,5)
print(VectorPos)
end
I’ve tested the script and this is where it goes
Tell me if you want more
I did once make a dummy do something like this, but I’m not sure how to replicate animations…
Here’s my code if needed:
local guy = game.Workspace.Dummy
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
while task.wait() do
guy:PivotTo(char:GetPivot() - char:GetPivot().RightVector * 5)
end
Is there any way to replicate the animations?
I found a script on devforum that finds what animation the model is playing How to detect if a character animation is playing? - #7 by Venonum. You could use this in a seperate script to play the animations. I suggest using somejtohguyman’s script. Its smoother.
it seems smoother but it have some issues like this:
EDIT: i managed to fix it but getting the humanoidrootpart pivot
maybe lock the entities z position to the players z position?
i already fixed that, dont worry
the problem rn its to make the animation replicate, the method that you sent didnt worked and it’s confusing
well thats annoying, im not sure maybe we can try creating a makeshift animation detector. So like in starter character scripts in animations. We make it so we fire server and send an output on everytime an animation plays. Since i assume you will be using custom animations It has to be more difficult, unless the animations are all from one source.