0% found this document useful (0 votes)
400 views1 page

Fling Script 2022

This document contains code to target and spin another player's character in a game. It defines settings to specify the target player, gets references to necessary game services and players, attaches a body angular velocity component to spin the local player towards the target player's orientation on each step, and detaches the component when the target is no longer valid.

Uploaded by

ItzShoveel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
400 views1 page

Fling Script 2022

This document contains code to target and spin another player's character in a game. It defines settings to specify the target player, gets references to necessary game services and players, attaches a body angular velocity component to spin the local player towards the target player's orientation on each step, and detaches the component when the target is no longer valid.

Uploaded by

ItzShoveel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

-- Settings

local Settings = {
Target = "" -- Target Name (Not display name)
}

-- Objects
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local LocalPlayer = Players.LocalPlayer


local Target = Players:FindFirstChild(Settings.Target)

local BodyAngularVelocity = Instance.new("BodyAngularVelocity")


BodyAngularVelocity.AngularVelocity = Vector3.new(10^6, 10^6, 10^6)
BodyAngularVelocity.MaxTorque = Vector3.new(10^6, 10^6, 10^6)
BodyAngularVelocity.P = 10^6

-- Start
if not Target then return end
BodyAngularVelocity.Parent = LocalPlayer.Character.HumanoidRootPart

while Target.Character.HumanoidRootPart and LocalPlayer.Character.HumanoidRootPart


do
RunService.RenderStepped:Wait()
LocalPlayer.Character.HumanoidRootPart.CFrame =
Target.Character.HumanoidRootPart.CFrame *
LocalPlayer.Character.HumanoidRootPart.CFrame.Rotation
LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new()
end

BodyAngularVelocity.Parent = nil

You might also like