Low Gravity Event in Studio Lite
before I'll show you the script please like and subscribe tags:#roblox #roblox #bringthistrendback #helpmemakethismakesense #memes #gag #funny #game #edit #funny here's the ServerScript: --// SERVICES local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Lighting = game:GetService("Lighting") local eventRemote = ReplicatedStorage:WaitForChild("EventRemote") local eventsFolder = ReplicatedStorage:WaitForChild("Events") --// ADMINS local admins = { [8240258487] = true, [87654321] = true } local function isAdmin(player) return admins[player.UserId] == true end --// LOW GRAVITY EVENT local function startLowGravityEvent() local duration = 60 -- Save original gravity local originalGravity = workspace.Gravity -- Apply low gravity workspace.Gravity = 20 -- default is 196 -- Add space sky local sky = eventsFolder:FindFirstChild("SpaceSky") if sky then local clone = sky:Clone() clone.Name = "ActiveSky" clone.Parent = Lighting end -- UI trigger eventRemote:FireAllClients("START", duration, "LOW_GRAVITY") -- Wait duration task.wait(duration) -- Restore gravity workspace.Gravity = originalGravity -- Remove sky local activeSky = Lighting:FindFirstChild("ActiveSky") if activeSky then activeSky:Destroy() end eventRemote:FireAllClients("END") end --// CHAT COMMAND Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) if not isAdmin(player) then return end msg = string.lower(msg) if msg == "!lowgravity" then startLowGravityEvent() end end) end) StarterPlayerScripts Localscript: local ReplicatedStorage = game:GetService("ReplicatedStorage") local eventRemote = ReplicatedStorage:WaitForChild("EventRemote") local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- GUI local gui = Instance.new("ScreenGui") gui.Name = "EventUI" gui.Parent = playerGui -- FRAME local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 30, 0, 30) frame.Position = UDim2.new(0.92, 0, 0, 10) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 40) frame.Visible = false frame.Parent = gui -- CORNER local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = frame -- STROKE local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(100, 150, 255) stroke.Thickness = 2 stroke.Parent = frame -- ICON local icon = Instance.new("ImageLabel") icon.Size = UDim2.new(1, 0, 1, 0) icon.BackgroundTransparency = 1 icon.Image = "rbxassetid://YOUR_SPACE_ICON_ID" icon.Parent = frame -- TIMER local timer = Instance.new("TextLabel") timer.Size = UDim2.new(0.5, 0, 0.5, 0) timer.Position = UDim2.new(0.2, 0, 0.6, 0) timer.BackgroundTransparency = 1 timer.TextScaled = true timer.TextColor3 = Color3.new(1,1,1) timer.Text = "" timer.Parent = frame -- EVENT HANDLER eventRemote.OnClientEvent:Connect(function(action, timeLeft, eventType) if action == "START" and eventType == "LOW_GRAVITY" then frame.Visible = true for i = timeLeft, 0, -1 do timer.Text = i .. "" task.wait(1) end frame.Visible = false end if action == "END" then frame.Visible = false end end)
Download
0 formatsNo download links available.