ADVERTISEMENTREMOVE ADS
Game icon

VIP by Lokasorn

Script preview thumbnail
Script Preview

Description

Just a simple VIP Button with gives u VIP

ADVERTISEMENTREMOVE ADS
184 Lines • 8.21 KiB
Raw
--// Services & Variables
local ReplicatedStorage, RunService, Players, UserInputService, TweenService, Workspace
pcall(function()
ReplicatedStorage = game:GetService("ReplicatedStorage")
RunService = game:GetService("RunService")
Players = game:GetService("Players")
UserInputService = game:GetService("UserInputService")
TweenService = game:GetService("TweenService")
Workspace = game:GetService("Workspace")
end)
local player = Players.LocalPlayer
--// GUI Section
pcall(function()
if player.PlayerGui:FindFirstChild("LokasornScriptGui") then
player.PlayerGui.LokasornScriptGui:Destroy()
end
local screenGui = Instance.new("ScreenGui", player.PlayerGui)
screenGui.Name = "LokasornScriptGui"
screenGui.ResetOnSpawn = false
_G.mainFrame = Instance.new("Frame", screenGui)
_G.mainFrame.Name = "MainFrame"
_G.mainFrame.Size = UDim2.new(0, 400, 0, 200)
_G.mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
_G.mainFrame.BorderSizePixel = 0
_G.mainFrame.Position = UDim2.new(0.5, -200, 0.5, -100)
_G.mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
_G.mainFrame.ClipsDescendants = true
Instance.new("UICorner", _G.mainFrame).CornerRadius = UDim.new(0, 16)
Instance.new("UIStroke", _G.mainFrame).Color = Color3.fromRGB(40, 40, 45)
local titleBar = Instance.new("Frame", _G.mainFrame)
titleBar.Name = "TitleBar"
titleBar.Size = UDim2.new(1, 0, 0, 50)
titleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
titleBar.BorderSizePixel = 0
Instance.new("UICorner", titleBar).CornerRadius = UDim.new(0, 16)
local titleLabel = Instance.new("TextLabel", titleBar)
titleLabel.Name = "TitleLabel"
titleLabel.Size = UDim2.new(0.7, 0, 0, 25)
titleLabel.Position = UDim2.new(0.05, 0, 0, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Push A Rock VIP"
titleLabel.TextColor3 = Color3.fromRGB(200, 200, 255)
titleLabel.TextSize = 24
titleLabel.Font = Enum.Font.GothamBold
titleLabel.TextXAlignment = Enum.TextXAlignment.Left
local subtitleLabel = Instance.new("TextLabel", titleBar)
subtitleLabel.Name = "SubtitleLabel"
subtitleLabel.Size = UDim2.new(0.7, 0, 0, 20)
subtitleLabel.Position = UDim2.new(0.05, 0, 0, 25)
subtitleLabel.BackgroundTransparency = 1
subtitleLabel.Text = "by Lokasorn"
subtitleLabel.TextColor3 = Color3.fromRGB(150, 150, 200)
subtitleLabel.TextSize = 14
subtitleLabel.Font = Enum.Font.Gotham
subtitleLabel.TextXAlignment = Enum.TextXAlignment.Left
local closeButton = Instance.new("TextButton", titleBar)
closeButton.Name = "CloseButton"
closeButton.Size = UDim2.new(0, 36, 0, 36)
closeButton.Position = UDim2.new(1, -46, 0, 7)
closeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 45)
closeButton.Text = "X"
closeButton.TextColor3 = Color3.fromRGB(255, 150, 150)
closeButton.TextSize = 18
closeButton.Font = Enum.Font.GothamBold
Instance.new("UICorner", closeButton).CornerRadius = UDim.new(0, 12)
local minimizeButton = Instance.new("TextButton", titleBar)
minimizeButton.Name = "MinimizeButton"
minimizeButton.Size = UDim2.new(0, 36, 0, 36)
minimizeButton.Position = UDim2.new(1, -92, 0, 7)
minimizeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 45)
minimizeButton.Text = "-"
minimizeButton.TextColor3 = Color3.fromRGB(255, 200, 100)
minimizeButton.TextSize = 18
minimizeButton.Font = Enum.Font.GothamBold
Instance.new("UICorner", minimizeButton).CornerRadius = UDim.new(0, 12)
local contentFrame = Instance.new("Frame", _G.mainFrame)
contentFrame.Name = "ContentFrame"
contentFrame.Size = UDim2.new(1, -20, 1, -70)
contentFrame.Position = UDim2.new(0, 10, 0, 60)
contentFrame.BackgroundTransparency = 1
local getVipButton = Instance.new("TextButton", contentFrame)
getVipButton.Name = "GetVipButton"
getVipButton.Size = UDim2.new(0, 200, 0, 50)
getVipButton.Position = UDim2.new(0.5, -100, 0.5, -25)
getVipButton.BackgroundColor3 = Color3.fromRGB(40, 40, 45)
getVipButton.Text = "GET VIP"
getVipButton.TextColor3 = Color3.fromRGB(255, 200, 100)
getVipButton.TextSize = 18
getVipButton.Font = Enum.Font.GothamBold
Instance.new("UICorner", getVipButton).CornerRadius = UDim.new(0, 12)
local successMessage = Instance.new("TextLabel", contentFrame)
successMessage.Name = "SuccessMessage"
successMessage.Size = UDim2.new(1, 0, 0, 30)
successMessage.Position = UDim2.new(0, 0, 0.5, 30)
successMessage.BackgroundTransparency = 1
successMessage.Text = "VIP successfully received!"
successMessage.TextColor3 = Color3.fromRGB(0, 255, 0)
successMessage.TextSize = 16
successMessage.Font = Enum.Font.GothamBold
successMessage.Visible = false
local function createTween(i, p, d)
return TweenService:Create(i, TweenInfo.new(d, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), p)
end
local function applyHoverEffect(b, h, d)
b.MouseEnter:Connect(function()
createTween(b, {
BackgroundColor3 = h
}, 0.2):Play()
end)
b.MouseLeave:Connect(function()
createTween(b, {
BackgroundColor3 = d
}, 0.2):Play()
end)
end
applyHoverEffect(closeButton, Color3.fromRGB(60, 30, 30), Color3.fromRGB(40, 40, 45))
applyHoverEffect(minimizeButton, Color3.fromRGB(60, 50, 20), Color3.fromRGB(40, 40, 45))
applyHoverEffect(getVipButton, Color3.fromRGB(60, 50, 20), Color3.fromRGB(40, 40, 45))
getVipButton.MouseButton1Click:Connect(function()
local remoteEvent = ReplicatedStorage:FindFirstChild("Remote")
if remoteEvent then
local groupEvent = remoteEvent:FindFirstChild("Event")
if groupEvent then
local specificEvent = groupEvent:FindFirstChild("Group")
if specificEvent then
local fireEvent = specificEvent:FindFirstChild("[C-S]PlayerTryGetGroupReward")
if fireEvent then
fireEvent:FireServer()
successMessage.Visible = true
task.wait(3)
successMessage.Visible = false
end
end
end
end
end)
local isMinimized = false
local function minimizeGui()
isMinimized = not isMinimized
_G.mainFrame.Visible = not isMinimized
end
closeButton.MouseButton1Click:Connect(function()
screenGui:Destroy()
end)
minimizeButton.MouseButton1Click:Connect(minimizeGui)
local isDragging = false
local dragStartPos, dragStartFramePos
titleBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
isDragging = true
dragStartPos = input.Position
dragStartFramePos = _G.mainFrame.Position
end
end)
UserInputService.InputChanged:Connect(function(input)
if isDragging and input.UserInputType == Enum.UserInputType.MouseMovement then
local delta = input.Position - dragStartPos
_G.mainFrame.Position = UDim2.new(dragStartFramePos.X.Scale, dragStartFramePos.X.Offset + delta.X, dragStartFramePos.Y.Scale, dragStartFramePos.Y.Offset + delta.Y)
end
end)
UserInputService.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
isDragging = false
end
end)
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then
return
end
if input.KeyCode == Enum.KeyCode.RightControl then
minimizeGui()
end
end)
_G.mainFrame.Visible = false
_G.mainFrame.Size = UDim2.new(0, 0, 0, 0)
_G.mainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
task.wait(0.1)
TweenService:Create(_G.mainFrame, TweenInfo.new(0.5, Enum.EasingStyle.Back), {
Size = UDim2.new(0, 400, 0, 200),
Position = UDim2.new(0.5, -200, 0.5, -100)
}):Play()
_G.mainFrame.Visible = true
end)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS