Universal Script 📌
1.9k Views
463 Executions

Auto Troll For Trolling Towers

Universal Script 📌
titocool822
titocool82210K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Makes you bounce up and down until you reset

View Raw
-- LocalScript in StarterPlayerScripts

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer

-- Wait for character and parts
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")

-- Wait until character is likely grounded
repeat task.wait() until rootPart.Velocity.Magnitude < 1

-- Freeze movement
humanoid.PlatformStand = true

-- Settings
local amplitude = 10 -- height
local speed = 10 -- bounce speed
local startPosition = rootPart.Position -- should now be correct

-- Bouncing
RunService.RenderStepped:Connect(function()
	if rootPart and rootPart.Parent then
		local bounceY = math.sin(tick() * speed) * amplitude
		local newPosition = Vector3.new(startPosition.X, startPosition.Y + bounceY, startPosition.Z)

		rootPart.Velocity = Vector3.zero
		rootPart.RotVelocity = Vector3.zero
		rootPart.CFrame = CFrame.new(newPosition)
	end
end)



Comments

2
Log in to join the conversation. Login
zxcv's profile picture
zxcv1 year ago

wow

2
VantaXock's profile picture
VantaXock1 year ago

Wow!

1

Tags

More universal scripts

See all
Script hub
85.7k
341.3k
Bumped 1 hour ago
Key System
Script hub
53.6k
14.5k
Bumped 2 hours ago
Key System
Paid
Script hub
216
689
Bumped 3 hours ago
Key System
Universal Script 📌
1.3M
593.4k
Bumped 5 hours ago
Script hub
2.5k
19.7k
Bumped 6 hours ago
Universal Script 📌
404
1.2k
Approved 7 hours ago
Universal Script 📌
115
1.6k
Approved 8 hours ago