Universal Script 📌
520 Views
3.7k Executions

Gum gum sling shot

Universal Script 📌
harley4445rob87
harley4445rob87Published 5
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

It just slings you like luffy

View Raw
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local humanoid = char:WaitForChild("Humanoid")

-- DASH SETTINGS
local dashForwardSpeed = 200
local airLift = 40
local dashDuration = 0.25

-- DASH ANIMATION
local dashAnim = Instance.new("Animation")
dashAnim.AnimationId = "rbxassetid://1234567890" -- replace with your slingshot-style animation
local dashTrack = humanoid:LoadAnimation(dashAnim)

-- GUI
local gui = player:WaitForChild("PlayerGui"):FindFirstChild("ScreenGui") or Instance.new("ScreenGui", player.PlayerGui)
gui.ResetOnSpawn = false

local dashBtn = gui:FindFirstChild("DASH") or Instance.new("TextButton")
dashBtn.Size = UDim2.new(0,120,0,50)
dashBtn.Position = UDim2.new(0.6,0,0.8,0)
dashBtn.Text = "GUM GUM DASH"
dashBtn.TextScaled = true
dashBtn.BackgroundColor3 = Color3.fromRGB(0,150,255)
dashBtn.Name = "DASH"
dashBtn.Parent = gui

-- DASH FUNCTION
dashBtn.MouseButton1Click:Connect(function()
	-- Play slingshot animation
	dashTrack:Play()

	-- Launch forward with air lift
	local dir = hrp.CFrame.LookVector
	local bodyVelocity = Instance.new("BodyVelocity")
	bodyVelocity.Velocity = Vector3.new(dir.X * dashForwardSpeed, airLift, dir.Z * dashForwardSpeed)
	bodyVelocity.MaxForce = Vector3.new(1e5,1e5,1e5)
	bodyVelocity.P = 1e4
	bodyVelocity.Parent = hrp


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
202.3k
2.3M
Bumped 16 minutes ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script 📌
57.4k
270.0k
Bumped 2 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 6 hours ago
Key System
Script hub
4.0M
2.7M
Bumped 6 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games

Script hub
576
2.6k
Bumped 7 hours ago