New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I make a tool that can pull players to you or are you even able to make that?

Asked by 9 days ago

I’m making this game and I need a tool what you can use so you can pull players to you from where you are standing at. Something like scorpions spear from mortal combat and I’m wondering how I’m suppose to make that can you guys help?

1 answer

Log in to vote
-1
Answered by 9 days ago
Edited 9 days ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

Just change the players' positions in a regular Script.

local tool = script.Parent

tool.Activated:Connect(function() -- when player clicks while tool is equipped
    for _, player in pairs(game.Players:GetPlayers()) do -- loops through each player in the server
        player.Character.HumanoidRootPart.CFrame = tool.Parent.Parent.Character.HumanoidRootPart.CFrame -- changes players' CFrames to the exact CFrame of the player holding the tool 
    end
end)
Ad

Answer this question