Universal Script 📌
11.7k Views
989 Executions

Universal Self fling with local ragdoll R6 and R15

Universal Script 📌
nachovazsua
nachovazsuaPublished 5
2 years 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

pretty self explanatory title, i use It as a knockback simulation but you can use It as whatever i guess

View Raw
local player = game.Players.LocalPlayer
local userInput = game:GetService("UserInputService")
local runService = game:GetService("RunService")

-- GUI setup
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "KnockbackGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui

local directions = {
	W = Vector3.new(0, 0, -1),
	A = Vector3.new(-1, 0, 0),
	S = Vector3.new(0, 0, 1),
	D = Vector3.new(1, 0, 0)
}

local keyToDirection = {
	[Enum.KeyCode.Up] = directions.W,
	[Enum.KeyCode.Left] = directions.A,
	[Enum.KeyCode.Down] = directions.S,
	[Enum.KeyCode.Right] = directions.D
}

local function createButton(name, pos)
	local btn = Instance.new("TextButton")
	btn.Name = name
	btn.Text = name
	btn.Size = UDim2.new(0, 50, 0, 50)
	btn.Position = pos
	btn.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
	btn.TextColor3 = Color3.fromRGB(255, 255, 255)
	btn.TextScaled = true
	btn.Font = Enum.Font.SourceSansBold
	btn.Parent = screenGui
	return btn
end



Comments

2
Log in to join the conversation. Login
Xeryt's profile picture
Xeryt1 year ago

Is this fe

1
anonymousrobloxplaye's profile picture
anonymousrobloxplaye2 years ago

can uadd so i can bind buttons to it?

1

More universal scripts

See all
Universal Script 📌
48.4k
46.5k
Bumped 2 hours ago
Universal Script 📌
1.4k
1.3k
Bumped 5 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 6 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 6 hours ago
Script hub
3.5M
1.2M
Bumped 7 hours ago
Key System
Universal Script 📌
5.0k
92.0k
Bumped 12 hours ago