Universal Script 📌
6.9k Views
2.4k Executions

my first script LY GUI

Universal Script 📌
c00lscripter
c00lscripterPublished 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

im not sure if it works sorry

View Raw
-- LocalScript: Place this in StarterPlayer > StarterPlayerScripts

-- SERVICES
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")

-- PLAYER
local player = Players.LocalPlayer

-- REMOTE SETUP
local remoteEvent = ReplicatedStorage:FindFirstChild("FE_GUI_Action") or Instance.new("RemoteEvent")
remoteEvent.Name = "FE_GUI_Action"
remoteEvent.Parent = ReplicatedStorage

-- SERVER HANDLER (Runs on server using BindableEvent simulation)
if RunService:IsServer() then
	local flyingPlayers = {}

	local function getRootPart(character)
		return character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso")
	end

	remoteEvent.OnServerEvent:Connect(function(player, action)
		local char = player.Character
		if not char then return end
		local root = getRootPart(char)
		if not root then return end

		if action == "TeleportToSpawn" then
			root.CFrame = CFrame.new(0, 10, 0)

		elseif action == "PrintHello" then
			print(player.Name .. " clicked Hello!")

		elseif action == "ToggleFly" then
			if flyingPlayers[player] then
				local bv = root:FindFirstChild("BodyVelocity")
				if bv then bv:Destroy() end


Comments

6
Log in to join the conversation. Login
BANGscripts's profile picture
BANGscripts1 year ago

This is made by AI 😔

2
lory_'s profile picture
lory_3 months ago

My pfp is me irl because of this

1
c00lscripter's profile picture
c00lscripterUploader1 year ago

whats wrong with being a regretevator fan dude

1
ScriptbloxTermedMe's profile picture
ScriptbloxTermedMe1 year ago

yeah ts is AI + they a regretevator fan 😔🥀

1
c00lscripter's profile picture
c00lscripterUploader1 year ago

thanks dude

1
defugoo's profile picture
defugoo1 year ago

good job !

1

Tags

More universal scripts

See all
Script hub
2.9M
1.1M
Bumped 2 hours ago
Key System

Script hub

#10 today

CanHub V2 200 GAMES KEYLESS

Script hub
5.5M
1.0M
Bumped 3 hours ago
Key System
Script hub
1.7M
2.2M
Bumped 3 hours ago
Key System

Script hub

#16 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.6k
83.0k
Bumped 3 hours ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.8k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
493
1.2k
Bumped 8 hours ago
Key System
Universal Script 📌
7.2k
142.9k
Bumped 8 hours ago