
KeylessUniversal

--[=[
d888b db db d888888b .d888b. db db db .d8b.
88' Y8b 88 88 `88' VP `8D 88 88 88 d8' `8b
88 88 88 88 odD' 88 88 88 88ooo88
88 ooo 88 88 88 .88' 88 88 88 88~~~88
88. ~8~ 88b d88 .88. j88. 88booo. 88b d88 88 88 @uniquadev
Y888P ~Y8888P' Y888888P 888888D Y88888P ~Y8888P' YP YP CONVERTER
designed using localmaze gui creator
]=]
-- Instances: 22 | Scripts: 8 | Modules: 0 | Tags: 0
local LMG2L = {};
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui
LMG2L["ScreenGui_1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
LMG2L["ScreenGui_1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame
LMG2L["Frame_2"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["Frame_2"]["BorderSizePixel"] = 0;
LMG2L["Frame_2"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["Frame_2"]["Size"] = UDim2.new(0, 516, 0, 256);
LMG2L["Frame_2"]["Position"] = UDim2.new(0, 86, 0, 20);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.TextLabel
LMG2L["TextLabel_3"] = Instance.new("TextLabel", LMG2L["Frame_2"]);
LMG2L["TextLabel_3"]["BackgroundColor3"] = Color3.fromRGB(250, 250, 250);
LMG2L["TextLabel_3"]["Size"] = UDim2.new(0, 408, 0, 168);
LMG2L["TextLabel_3"]["Text"] = [[]];
LMG2L["TextLabel_3"]["Position"] = UDim2.new(0, 2, 0, 46);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.TextLabel.TextBox
LMG2L["TextBox_4"] = Instance.new("TextBox", LMG2L["TextLabel_3"]);
LMG2L["TextBox_4"]["BorderSizePixel"] = 0;
LMG2L["TextBox_4"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["TextBox_4"]["Size"] = UDim2.new(0, 82, 0, 22);
LMG2L["TextBox_4"]["Position"] = UDim2.new(0, 10, 0, 0);
LMG2L["TextBox_4"]["Text"] = [[--print("Hello World") ]];
LMG2L["TextBox_4"]["BackgroundTransparency"] = 1;
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.TextButton
LMG2L["TextButton_5"] = Instance.new("TextButton", LMG2L["Frame_2"]);
LMG2L["TextButton_5"]["BorderSizePixel"] = 0;
LMG2L["TextButton_5"]["BackgroundColor3"] = Color3.fromRGB(229, 229, 229);
LMG2L["TextButton_5"]["Size"] = UDim2.new(0, 104, 0, 24);
LMG2L["TextButton_5"]["Text"] = [[Execute]];
LMG2L["TextButton_5"]["Position"] = UDim2.new(0, 6, 0, 222);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.TextLabel
LMG2L["TextLabel_6"] = Instance.new("TextLabel", LMG2L["Frame_2"]);
LMG2L["TextLabel_6"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_6"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["TextLabel_6"]["BackgroundTransparency"] = 1;
LMG2L["TextLabel_6"]["Size"] = UDim2.new(0, 104, 0, 14);
LMG2L["TextLabel_6"]["Text"] = [[Mini Serverside]];
LMG2L["TextLabel_6"]["Position"] = UDim2.new(0, 10, 0, 0);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.TextLabel.LocalScript
LMG2L["LocalScript_7"] = Instance.new("LocalScript", LMG2L["TextLabel_6"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame
LMG2L["ScrollingFrame_8"] = Instance.new("ScrollingFrame", LMG2L["Frame_2"]);
LMG2L["ScrollingFrame_8"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["ScrollingFrame_8"]["Size"] = UDim2.new(0, 108, 0, 256);
LMG2L["ScrollingFrame_8"]["Position"] = UDim2.new(0, 408, 0, 0);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton
LMG2L["TextButton_9"] = Instance.new("TextButton", LMG2L["ScrollingFrame_8"]);
LMG2L["TextButton_9"]["BorderSizePixel"] = 0;
LMG2L["TextButton_9"]["BackgroundColor3"] = Color3.fromRGB(231, 231, 231);
LMG2L["TextButton_9"]["Size"] = UDim2.new(0, 110, 0, 16);
LMG2L["TextButton_9"]["Text"] = [[Polaria.txt]];
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton
LMG2L["TextButton_a"] = Instance.new("TextButton", LMG2L["TextButton_9"]);
LMG2L["TextButton_a"]["BorderSizePixel"] = 0;
LMG2L["TextButton_a"]["BackgroundColor3"] = Color3.fromRGB(231, 231, 231);
LMG2L["TextButton_a"]["Size"] = UDim2.new(0, 110, 0, 16);
LMG2L["TextButton_a"]["Text"] = [[Saitama 2.txt]];
LMG2L["TextButton_a"]["Position"] = UDim2.new(0, 0, 0, 16);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton
LMG2L["TextButton_b"] = Instance.new("TextButton", LMG2L["TextButton_a"]);
LMG2L["TextButton_b"]["BorderSizePixel"] = 0;
LMG2L["TextButton_b"]["BackgroundColor3"] = Color3.fromRGB(231, 231, 231);
LMG2L["TextButton_b"]["Size"] = UDim2.new(0, 110, 0, 16);
LMG2L["TextButton_b"]["Text"] = [[Anime.txt]];
LMG2L["TextButton_b"]["Position"] = UDim2.new(0, 0, 0, 16);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton
LMG2L["TextButton_c"] = Instance.new("TextButton", LMG2L["TextButton_b"]);
LMG2L["TextButton_c"]["BorderSizePixel"] = 0;
LMG2L["TextButton_c"]["BackgroundColor3"] = Color3.fromRGB(231, 231, 231);
LMG2L["TextButton_c"]["Size"] = UDim2.new(0, 110, 0, 16);
LMG2L["TextButton_c"]["Text"] = [[Annonymous All.txt]];
LMG2L["TextButton_c"]["Position"] = UDim2.new(0, 0, 0, 16);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.TextButton
LMG2L["TextButton_d"] = Instance.new("TextButton", LMG2L["TextButton_c"]);
LMG2L["TextButton_d"]["BorderSizePixel"] = 0;
LMG2L["TextButton_d"]["BackgroundColor3"] = Color3.fromRGB(231, 231, 231);
LMG2L["TextButton_d"]["Size"] = UDim2.new(0, 110, 0, 16);
LMG2L["TextButton_d"]["Text"] = [[Car.txt]];
LMG2L["TextButton_d"]["Position"] = UDim2.new(0, 0, 0, 16);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.TextButton.TextButton
LMG2L["TextButton_e"] = Instance.new("TextButton", LMG2L["TextButton_d"]);
LMG2L["TextButton_e"]["BorderSizePixel"] = 0;
LMG2L["TextButton_e"]["BackgroundColor3"] = Color3.fromRGB(231, 231, 231);
LMG2L["TextButton_e"]["Size"] = UDim2.new(0, 110, 0, 16);
LMG2L["TextButton_e"]["Text"] = [[Car billy.txt]];
LMG2L["TextButton_e"]["Position"] = UDim2.new(0, 0, 0, 16);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.TextButton.TextButton.LocalScript
LMG2L["LocalScript_f"] = Instance.new("LocalScript", LMG2L["TextButton_e"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.TextButton.LocalScript
LMG2L["LocalScript_10"] = Instance.new("LocalScript", LMG2L["TextButton_d"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.LocalScript
LMG2L["LocalScript_11"] = Instance.new("LocalScript", LMG2L["TextButton_c"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.LocalScript
LMG2L["LocalScript_12"] = Instance.new("LocalScript", LMG2L["TextButton_b"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.LocalScript
LMG2L["LocalScript_13"] = Instance.new("LocalScript", LMG2L["TextButton_a"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.LocalScript
LMG2L["LocalScript_14"] = Instance.new("LocalScript", LMG2L["TextButton_9"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ImageLabel
LMG2L["ImageLabel_15"] = Instance.new("ImageLabel", LMG2L["Frame_2"]);
LMG2L["ImageLabel_15"]["BorderSizePixel"] = 0;
LMG2L["ImageLabel_15"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
-- LMG2L["ImageLabel_15"]["ImageContent"] = ;
LMG2L["ImageLabel_15"]["Image"] = [[rbxassetid://91250974185590]];
LMG2L["ImageLabel_15"]["Size"] = UDim2.new(0, 24, 0, 18);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.LocalScript
LMG2L["LocalScript_16"] = Instance.new("LocalScript", LMG2L["Frame_2"]);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.TextLabel.LocalScript
local function C_7()
local script = LMG2L["LocalScript_7"];
local textLabel = script.Parent
local rainbowColors = {
Color3.fromRGB(255, 0, 0), -- Красный
Color3.fromRGB(255, 165, 0), -- Оранжевый
Color3.fromRGB(255, 255, 0), -- Жёлтый
Color3.fromRGB(0, 255, 0), -- Зелёный
Color3.fromRGB(0, 0, 255), -- Синий
Color3.fromRGB(75, 0, 130), -- Индиго
Color3.fromRGB(148, 0, 211) -- Фиолетовый
}
local currentColorIndex = 1
local function startRainbowSequence()
while true do
textLabel.TextColor3 = rainbowColors[currentColorIndex]
currentColorIndex = currentColorIndex % #rainbowColors + 1 -- Переход к следующему цвету
wait(0.2) -- Задержка между сменами цветов
end
end
startRainbowSequence()
end;
task.spawn(C_7);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.TextButton.TextButton.LocalScript
local function C_f()
local script = LMG2L["LocalScript_f"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
local Players = cloneref(game:GetService("Players"))
local StarterGui = cloneref(game:GetService("StarterGui"))
local UserInputService = cloneref(game:GetService("UserInputService"))
-- Made By @Gazer_ha. pls dont steal or put keysytem on it
local uScale = function(xScale, yScale)
local screen = workspace.CurrentCamera.ViewportSize
return UDim2.new(0, screen.X * xScale, 0, screen.Y * (yScale or xScale)) end
local uPos = function(xScale, yScale)
local screen = workspace.CurrentCamera.ViewportSize
return UDim2.new(0, screen.X * xScale, 0, screen.Y * yScale) end
local uSize = function(widthScale, heightScale)
local screen = workspace.CurrentCamera.ViewportSize
return UDim2.new(0, screen.X * widthScale, 0, screen.Y * (heightScale or widthScale)) end
--[[ Example usage for the uSize and uPos:
frame.Position = uScale(0.4, 0.5) # 40% from left, 50% from top
frame.Size = uSize(0.3) # 30% of screen width and height (square)
# For buttons or non-square elements
button.Position = uPos(0.8, 0.9) # 80% from left, 90% from top
button.Size = uSize(0.15, 0.08) # 15% width, 8% height
]]
createNotification = function(title, text, duration)
local notificationGui = Instance.new("ScreenGui", cloneref(game:GetService("CoreGui")))
notificationGui.Name = "EnhancedNotification"
notificationGui.ResetOnSpawn = false
local mainFrame = Instance.new("Frame", notificationGui)
mainFrame.Size = uSize(0.25, 0.15)
mainFrame.Position = UDim2.new(0.75, 0, 0.05, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
mainFrame.BorderSizePixel = 0
local corner = Instance.new("UICorner", mainFrame)
corner.CornerRadius = UDim.new(0, 8)
local shadow = Instance.new("ImageLabel", mainFrame)
shadow.Name = "Shadow"
shadow.BackgroundTransparency = 1
shadow.Size = UDim2.new(1, 10, 1, 10)
shadow.Position = UDim2.new(0, -5, 0, -5)
shadow.Image = "rbxassetid://1316045217"
shadow.ImageColor3 = Color3.new(0, 0, 0)
shadow.ImageTransparency = 0.8
shadow.ScaleType = Enum.ScaleType.Slice
shadow.SliceCenter = Rect.new(10, 10, 118, 118)
shadow.ZIndex = -1
local titleBar = Instance.new("Frame", mainFrame)
titleBar.Size = UDim2.new(1, 0, 0, 28)
titleBar.Position = UDim2.new(0, 0, 0, 0)
titleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 40)
titleBar.BorderSizePixel = 0
local titleCorner = Instance.new("UICorner", titleBar)
titleCorner.CornerRadius = UDim.new(0, 8, 0, 0)
local titleText = Instance.new("TextLabel", titleBar)
titleText.Size = UDim2.new(1, -10, 1, 0)
titleText.Position = UDim2.new(0, 10, 0, 0)
titleText.BackgroundTransparency = 1
titleText.Text = title
titleText.Font = Enum.Font.GothamBold
titleText.TextColor3 = Color3.new(1, 1, 1)
titleText.TextScaled = true
titleText.TextXAlignment = Enum.TextXAlignment.Left
local timeBarContainer = Instance.new("Frame", mainFrame)
timeBarContainer.Size = UDim2.new(1, 0, 0, 3)
timeBarContainer.Position = UDim2.new(0, 0, 0, 28)
timeBarContainer.BackgroundColor3 = Color3.fromRGB(50, 50, 55)
timeBarContainer.BorderSizePixel = 0
local timeBar = Instance.new("Frame", timeBarContainer)
timeBar.Size = UDim2.new(1, 0, 1, 0)
timeBar.BackgroundColor3 = Color3.fromRGB(60, 120, 200)
timeBar.BorderSizePixel = 0
local contentFrame = Instance.new("Frame", mainFrame)
contentFrame.Size = UDim2.new(1, -10, 1, -45)
contentFrame.Position = UDim2.new(0, 5, 0, 38)
contentFrame.BackgroundTransparency = 1
local messageText = Instance.new("TextLabel", contentFrame)
messageText.Size = UDim2.new(1, 0, 1, 0)
messageText.BackgroundTransparency = 1
messageText.Text = text
messageText.Font = Enum.Font.Gotham
messageText.TextColor3 = Color3.new(1, 1, 1)
messageText.TextSize = 16
messageText.TextWrapped = true
messageText.TextXAlignment = Enum.TextXAlignment.Left
messageText.TextYAlignment = Enum.TextYAlignment.Top
messageText.TextTruncate = Enum.TextTruncate.AtEnd
mainFrame.Size = UDim2.new(0, 0, 0, 0)
mainFrame.Position = UDim2.new(0.75, 0, 0.05, 0)
mainFrame:TweenSize(uSize(0.25, 0.15), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.3, true)
if duration and duration > 0 then
timeBar:TweenSize(UDim2.new(0, 0, 1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, duration, true)
task.delay(duration, function()
mainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.3, true)
task.wait(0.3)
notificationGui:Destroy()
end)
end
return notificationGui
end
local char = Players.LocalPlayer.Character
if char and char:FindFirstChild("Humanoid") and char.Humanoid.RigType == Enum.HumanoidRigType.R6 then
createNotification("R6??", "You need to be R15 Dude",8)
return
end
if getgenv().CarExecuted then return end
getgenv().CarExecuted = true
wait()
createNotification("Fe Silly Car V1.3", "Small GUI Update :3",8)
carstop = false
local plr = Players.LocalPlayer
local cg = cloneref(game:GetService("CoreGui"))
local runService = game:GetService("RunService")
local animData = {
{id = "76503595759461", mult = 1},
{id = "115245341767944", mult = 2},
{id = "127805235430271", mult = 4},
{id = "138003068153218", mult = 1},
{id = "116772752010894", mult = 1},
{id = "116625361313832", mult = 1},
{id = "81388785824317", mult = 1},
{id = "108747312576405", mult = 2},
{id = "113181071290859", mult = 1},
{id = "134681712937413", mult = 1},
{id = "115260380433565", mult = 2},
{id = "72382226286301", mult = 1}
}
local currentIndex = 1
local activeTrack
local activeConn
local sg = Instance.new("ScreenGui", cg)
sg.ResetOnSpawn = false
sg.Name = "SillyCarUI"
mainFrame = Instance.new("Frame", sg)
mainFrame.Size = uSize(0.3,0.6)
mainFrame.Position = UDim2.new(0.5, -200, 0.5, -175)
mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true
local corner = Instance.new("UICorner", mainFrame)
corner.CornerRadius = UDim.new(0, 8)
local shadow = Instance.new("ImageLabel", mainFrame)
shadow.Name = "Shadow"
shadow.BackgroundTransparency = 1
shadow.Size = UDim2.new(1, 10, 1, 10)
shadow.Position = UDim2.new(0, -5, 0, -5)
shadow.Image = "rbxassetid://1316045217"
shadow.ImageColor3 = Color3.new(0, 0, 0)
shadow.ImageTransparency = 0.8
shadow.ScaleType = Enum.ScaleType.Slice
shadow.SliceCenter = Rect.new(10, 10, 118, 118)
shadow.ZIndex = -1
title = Instance.new("Frame", mainFrame)
title.Size = UDim2.new(1, 0, 0, 32)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundColor3 = Color3.fromRGB(35, 35, 40)
title.BorderSizePixel = 0
local titleCorner = Instance.new("UICorner", title)
titleCorner.CornerRadius = UDim.new(0, 8)
titleCorner.Name = "TitleCorner"
local titleText = Instance.new("TextLabel", title)
titleText.Size = UDim2.new(1, -60, 1, 0)
titleText.Position = UDim2.new(0, 10, 0, 0)
titleText.BackgroundTransparency = 1
titleText.Text = "FE Silly Car"
titleText.Font = Enum.Font.GothamBold
titleText.TextColor3 = Color3.new(1, 1, 1)
titleText.TextScaled = true
titleText.TextXAlignment = Enum.TextXAlignment.Left
local buttonCorner = Instance.new("UICorner")
buttonCorner.CornerRadius = UDim.new(0, 4)
minBtn = Instance.new("TextButton", title)
minBtn.Size = UDim2.new(0, 24, 0, 24)
minBtn.Position = UDim2.new(1, -54, 0, 4)
minBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
minBtn.TextColor3 = Color3.new(1, 1, 1)
minBtn.Text = "_"
minBtn.Font = Enum.Font.GothamBold
minBtn.TextScaled = true
buttonCorner:Clone().Parent = minBtn
closeBtn = Instance.new("TextButton", title)
closeBtn.Size = UDim2.new(0, 24, 0, 24)
closeBtn.Position = UDim2.new(1, -26, 0, 4)
closeBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
closeBtn.TextColor3 = Color3.new(1, 1, 1)
closeBtn.Text = "×"
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextScaled = true
buttonCorner:Clone().Parent = closeBtn
vp = Instance.new("Frame", mainFrame)
vp.Size = UDim2.new(1, -20, 1, -120)
vp.Position = UDim2.new(0, 10, 0, 50)
vp.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
vp.BorderSizePixel = 0
local vpCorner = Instance.new("UICorner", vp)
vpCorner.CornerRadius = UDim.new(0, 6)
local innerVp = Instance.new("ViewportFrame", vp)
innerVp.Size = UDim2.new(1, -4, 1, -4)
innerVp.Position = UDim2.new(0, 2, 0, 2)
innerVp.BackgroundColor3 = Color3.fromRGB(10, 10, 15)
innerVp.BorderSizePixel = 0
cam = Instance.new("Camera")
cam.CameraType = Enum.CameraType.Scriptable
innerVp.CurrentCamera = cam
local animNameFrame = Instance.new("Frame", mainFrame)
animNameFrame.Size = UDim2.new(1, -20, 0, 24)
animNameFrame.Position = UDim2.new(0, 10, 0, 40)
animNameFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 40)
animNameFrame.BorderSizePixel = 0
local animNameCorner = Instance.new("UICorner", animNameFrame)
animNameCorner.CornerRadius = UDim.new(0, 4)
local animNameText = Instance.new("TextLabel", animNameFrame)
animNameText.Size = UDim2.new(1, 0, 1, 0)
animNameText.BackgroundTransparency = 1
animNameText.Text = "Animation "..currentIndex.."/"..#animData
animNameText.Font = Enum.Font.Gotham
animNameText.TextColor3 = Color3.new(1, 1, 1)
animNameText.TextScaled = true
local buttonContainer = Instance.new("Frame", mainFrame)
buttonContainer.Size = UDim2.new(1, -20, 0, 40)
buttonContainer.Position = UDim2.new(0, 10, 1, -50)
buttonContainer.BackgroundTransparency = 1
prevBtn = Instance.new("TextButton", buttonContainer)
prevBtn.Size = UDim2.new(0, 80, 1, 0)
prevBtn.Position = UDim2.new(0, 0, 0, 0)
prevBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
prevBtn.TextColor3 = Color3.new(1, 1, 1)
prevBtn.Text = "◄ Previous"
prevBtn.Font = Enum.Font.Gotham
prevBtn.TextScaled = true
buttonCorner:Clone().Parent = prevBtn
nextBtn = Instance.new("TextButton", buttonContainer)
nextBtn.Size = UDim2.new(0, 80, 1, 0)
nextBtn.Position = UDim2.new(1, -80, 0, 0)
nextBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
nextBtn.TextColor3 = Color3.new(1, 1, 1)
nextBtn.Text = "Next ►"
nextBtn.Font = Enum.Font.Gotham
nextBtn.TextScaled = true
buttonCorner:Clone().Parent = nextBtn
selectBtn = Instance.new("TextButton", mainFrame)
selectBtn.Size = UDim2.new(1, -20, 0, 30)
selectBtn.Position = UDim2.new(0, 10, 1, -90)
selectBtn.BackgroundColor3 = Color3.fromRGB(60, 120, 200)
selectBtn.TextColor3 = Color3.new(1, 1, 1)
selectBtn.Text = "SELECT ANIMATION"
selectBtn.Font = Enum.Font.GothamBold
selectBtn.TextScaled = true
local selectCorner = Instance.new("UICorner", selectBtn)
selectCorner.CornerRadius = UDim.new(0, 4)
local function setupButtonHover(button)
local originalColor = button.BackgroundColor3
local originalSize = button.Size
button.MouseEnter:Connect(function()
button.BackgroundColor3 = originalColor:lerp(Color3.new(1, 1, 1), 0.1)
button.Size = originalSize - UDim2.new(0, 2, 0, 2)
button.Position = button.Position + UDim2.new(0, 1, 0, 1)
end)
button.MouseLeave:Connect(function()
button.BackgroundColor3 = originalColor
button.Size = originalSize
button.Position = button.Position - UDim2.new(0, 1, 0, 1)
end)
end
setupButtonHover(prevBtn)
setupButtonHover(nextBtn)
setupButtonHover(selectBtn)
setupButtonHover(minBtn)
setupButtonHover(closeBtn)
-- Rest of existing functionality remains the same...
-- Only the UI creation part has been modified Lol
ensurePrimaryPart = function(m)
if not m then return end
if not m.PrimaryPart then
local root = m:FindFirstChild("HumanoidRootPart") or m:FindFirstChildWhichIsA("BasePart")
if root then
m.PrimaryPart = root
end
end
end
realDummy = Players:CreateHumanoidModelFromUserId(9160453052)
realDummy.Parent = workspace
ensurePrimaryPart(realDummy)
repeat task.wait() ensurePrimaryPart(realDummy) until realDummy.PrimaryPart
realDummy:SetPrimaryPartCFrame(CFrame.new(0, 0, 0))
vpDummy = realDummy:Clone()
ensurePrimaryPart(vpDummy)
vpDummy.Parent = innerVp
if vpDummy.PrimaryPart and realDummy.PrimaryPart then
vpDummy:SetPrimaryPartCFrame(realDummy.PrimaryPart.CFrame)
end
local hrp = vpDummy:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.Transparency = 1
end
for _, part in ipairs(vpDummy:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
for _, part in ipairs(realDummy:GetDescendants()) do
if part:IsA("BasePart") then
part.Transparency = 1
part.CanCollide = false
end
end
rotationAngle = 0
rotationSpeed = math.rad(30)
radius = 6
height = 3
runService.RenderStepped:Connect(function(deltaTime)
if not realDummy.Parent or not vpDummy.Parent then return end
for _, part in ipairs(realDummy:GetDescendants()) do
if part:IsA("BasePart") then
local clonePart = vpDummy:FindFirstChild(part.Name, true)
if clonePart and part:IsDescendantOf(realDummy) then
clonePart.CFrame = part.CFrame
end
end
end
rotationAngle = rotationAngle + rotationSpeed * deltaTime
local x = math.sin(rotationAngle) * radius
local z = math.cos(rotationAngle) * radius
local targetPos = (vpDummy.PrimaryPart and vpDummy.PrimaryPart.Position) or Vector3.new(0, 1, 0)
cam.CFrame = CFrame.new(targetPos + Vector3.new(x, height, z), targetPos)
end)
hum = realDummy:FindFirstChildWhichIsA("Humanoid")
animator = hum and (hum:FindFirstChildOfClass("Animator") or Instance.new("Animator", hum))
previewAnimTrack = nil
loadAnim = function(index)
if previewAnimTrack then
previewAnimTrack:Stop()
previewAnimTrack:Destroy()
end
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://" .. animData[index].id
if animator then
previewAnimTrack = animator:LoadAnimation(anim)
previewAnimTrack.Priority = Enum.AnimationPriority.Action
previewAnimTrack.Looped = true
previewAnimTrack:Play()
previewAnimTrack:AdjustWeight(1)
previewAnimTrack:AdjustSpeed(1)
end
animNameText.Text = "Animation "..currentIndex.."/"..#animData
end
loadAnim(currentIndex)
stopAll = function()
if activeTrack then
activeTrack:Stop()
activeTrack:Destroy()
activeTrack = nil
end
if activeConn then
activeConn:Disconnect()
activeConn = nil
end
end
playCarAnim = function(char)
stopAll()
local hum = char:WaitForChild("Humanoid")
local root = char:WaitForChild("HumanoidRootPart")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://" .. animData[currentIndex].id
local track = hum:LoadAnimation(anim)
activeTrack = track
track.Priority = Enum.AnimationPriority.Action
track:Play()
track.Looped = true
track:AdjustWeight(1)
workspace.CurrentCamera.CameraSubject = plr.Character:WaitForChild("Head")
local lastPosition = root.Position
local lastTime = os.clock()
activeConn = runService.Heartbeat:Connect(function()
local currentPosition = root.Position
local currentTime = os.clock()
local deltaTime = currentTime - lastTime
if deltaTime > 0 then
local displacement = (currentPosition - lastPosition)
local velocity = displacement / deltaTime
local speed = velocity.Magnitude
if speed > 0.1 then
local dot = root.CFrame.LookVector:Dot(velocity.Unit)
track:AdjustSpeed((speed / 16) * animData[currentIndex].mult * (dot >= 0 and 1 or -1))
else
track:AdjustSpeed(0)
end
end
lastPosition = currentPosition
lastTime = currentTime
end)
end
showConfirmation = function(callback)
if confirmationgui then return end
confirmationgui = true
local popup = Instance.new("Frame", sg)
popup.Size = uSize(0.2,0.5)
popup.Position = uPos(0,0)
popup.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
popup.BorderSizePixel = 0
popup.Name = "CloserNig"
Instance.new("UICorner", popup).CornerRadius = UDim.new(0, 8)
local shadow = Instance.new("ImageLabel", popup)
shadow.Name = "Shadow"
shadow.BackgroundTransparency = 1
shadow.Size = UDim2.new(1, 10, 1, 10)
shadow.Position = UDim2.new(0, -5, 0, -5)
shadow.Image = "rbxassetid://1316045217"
shadow.ImageColor3 = Color3.new(0, 0, 0)
shadow.ImageTransparency = 0.8
shadow.ScaleType = Enum.ScaleType.Slice
shadow.SliceCenter = Rect.new(10, 10, 118, 118)
shadow.ZIndex = -1
local label = Instance.new("TextLabel", popup)
label.Size = UDim2.new(1, -20, 0, 60)
label.Position = UDim2.new(0, 10, 0, 10)
label.BackgroundTransparency = 1
label.Text = "Are you sure you want to close?\n(it will stop the animation)"
label.Font = Enum.Font.Gotham
label.TextScaled = true
label.TextColor3 = Color3.new(1, 1, 1)
label.TextWrapped = true
local buttonContainer = Instance.new("Frame", popup)
buttonContainer.Size = UDim2.new(1, -20, 0, 40)
buttonContainer.Position = UDim2.new(0, 10, 1, -50)
buttonContainer.BackgroundTransparency = 1
local yesBtn = Instance.new("TextButton", buttonContainer)
yesBtn.Size = UDim2.new(0.5, -5, 1, 0)
yesBtn.Position = UDim2.new(0, 0, 0, 0)
yesBtn.BackgroundColor3 = Color3.fromRGB(60, 120, 200)
yesBtn.TextColor3 = Color3.new(1, 1, 1)
yesBtn.Text = "Yes"
yesBtn.Font = Enum.Font.Gotham
yesBtn.TextScaled = true
Instance.new("UICorner", yesBtn).CornerRadius = UDim.new(0, 4)
local noBtn = Instance.new("TextButton", buttonContainer)
noBtn.Size = UDim2.new(0.5, -5, 1, 0)
noBtn.Position = UDim2.new(0.5, 5, 0, 0)
noBtn.BackgroundColor3 = Color3.fromRGB(80, 80, 85)
noBtn.TextColor3 = Color3.new(1, 1, 1)
noBtn.Text = "No"
noBtn.Font = Enum.Font.Gotham
noBtn.TextScaled = true
Instance.new("UICorner", noBtn).CornerRadius = UDim.new(0, 4)
setupButtonHover(yesBtn)
setupButtonHover(noBtn)
yesBtn.MouseButton1Click:Connect(function()
popup:Destroy()
callback(true)
confirmationgui = false
end)
noBtn.MouseButton1Click:Connect(function()
popup:Destroy()
callback(false)
confirmationgui = false
end)
end
UserInputService.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.K then
sg.Enabled = not sg.Enabled
elseif input.KeyCode == Enum.KeyCode.Left then
currentIndex = (currentIndex - 2) % #animData + 1
loadAnim(currentIndex)
elseif input.KeyCode == Enum.KeyCode.Right then
currentIndex = currentIndex % #animData + 1
loadAnim(currentIndex)
elseif input.KeyCode == Enum.KeyCode.Return or input.KeyCode == Enum.KeyCode.KeypadEnter then
playCarAnim(plr.Character)
end
end)
prevBtn.MouseButton1Click:Connect(function()
currentIndex = (currentIndex - 2) % #animData + 1
loadAnim(currentIndex)
end)
nextBtn.MouseButton1Click:Connect(function()
currentIndex = currentIndex % #animData + 1
loadAnim(currentIndex)
end)
selectBtn.MouseButton1Click:Connect(function()
playCarAnim(plr.Character)
end)
local minimized = false
minBtn.MouseButton1Click:Connect(function()
minimized = not minimized
if minimized then
mainFrame.Size = uSize(0.3,0.1)
for _, child in ipairs(mainFrame:GetChildren()) do
if child ~= title and child ~= minBtn and child ~= closeBtn and not child:IsA("UICorner") then
child.Visible = false
end
end
titleCorner.CornerRadius = UDim.new(0, 8)
else
mainFrame.Size = uSize(0.3,0.6)
for _, child in ipairs(mainFrame:GetChildren()) do
if not child:IsA("UICorner") then
child.Visible = true
end
end
titleCorner.CornerRadius = UDim.new(0, 8, 0, 0)
end
end)
closeAll = function()
stopAll()
sg:Destroy()
end
closeBtn.MouseButton1Click:Connect(function()
showConfirmation(function(confirm)
if confirm then
carstop = true
closeAll()
getgenv().CarExecuted = false
createNotification("Fe Silly Car","Gui Closed..",5)
end
end)
end)
plr.CharacterAdded:Connect(function(char)
if carstop == true then
return
end
task.wait(1)
playCarAnim(char)
getgenv().TiltForCarLoaded = false
wait()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Gazer-Ha/Gaze-stuff/refs/heads/main/Tilt%20for%20car"))()
end)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Gazer-Ha/Gaze-stuff/refs/heads/main/Tilt%20for%20car"))()
loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Shiftlock-script-42373"))()
end)
end;
task.spawn(C_f);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.TextButton.LocalScript
local function C_10()
local script = LMG2L["LocalScript_10"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
Health = 5500
MaxHealth = 5500
ToughnessMinorDamage = 400
ToughnessMajorDamage = 600
DriftAcceleration = -0.001
DriftSteerDifficulty = 0.025
DriftSteerPower = 25
Acceleration = 0.003
TopSpeed = 186
Deceleration = 0.0075
BrakePower = 0.01
SteerDifficulty = 0.025
SteerPower = 20
TireFriction = 0.5
TireElasticity = 1
MasterColor = BrickColor.random()
Wrecked = false
Vehicle = Instance.new("Model")
Vehicle.Name = "Car"
Vehicle.Parent = Workspace
Base = Instance.new("Part")
Base.Name = "VehicleBase"
Base.BrickColor = MasterColor
Base.TopSurface = "Smooth"
Base.BottomSurface = "Smooth"
Base.FormFactor = "Custom"
Base.Size = Vector3.new(8, 1, 17)
Base.Friction = 1
Base.Elasticity = 0
Base.Parent = Vehicle
Thrust = Instance.new("BodyVelocity")
Thrust.P = 100
Thrust.maxForce = Vector3.new(math.huge, 0, math.huge)
Thrust.velocity = Vector3.new()
Thrust.Parent = Base
Steer = Instance.new("BodyGyro")
Steer.maxTorque = Vector3.new(0, math.huge, 0)
Steer.cframe = CFrame.new()
Steer.P = 7500
Steer.Parent = Base
Instance.new("BodyForce", Base).force = Vector3.new(0, -2000, 0)
Seat = Instance.new("VehicleSeat")
Seat.CanCollide = false
Seat.MaxSpeed = 0
Seat.Torque = 0
Seat.HeadsUpDisplay = false
Seat.BrickColor = BrickColor.new("Black")
Seat.TopSurface = "Smooth"
Seat.BottomSurface = "Smooth"
Seat.Size = Vector3.new(2, 1, 2)
Seat.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Name = "Weld"
Weld.Parent = Seat
Weld.Part0 = Base
Weld.Part1 = Seat
Weld.C0 = CFrame.new(-2.5, 0.375, 0.25)
Part = Instance.new("Part")
Part.Name = "Front Left Seat Back"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 3, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-2.5, 1.5, 1.25)
Part = Instance.new("Part")
Part.Name = "Front Left Seat Headrest 1"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-2.5, 3, 1.25)
Part = Instance.new("Part")
Part.Name = "Front Left Seat Headrest 2"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.9, 1.1, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-2.5, 3.8, 1.25)
Seat2 = Instance.new("VehicleSeat")
Seat2.Name = "VehicleSeat2"
Seat2.CanCollide = false
Seat2.MaxSpeed = 0
Seat2.Torque = 0
Seat2.HeadsUpDisplay = false
Seat2.BrickColor = BrickColor.new("Black")
Seat2.TopSurface = "Smooth"
Seat2.BottomSurface = "Smooth"
Seat2.Size = Vector3.new(2, 1, 2)
Seat2.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Seat2
Weld.Part0 = Base
Weld.Part1 = Seat2
Weld.C0 = CFrame.new(2.5, 0.375, 0.5)
Part = Instance.new("Part")
Part.Name = "Front Right Seat Back"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 3, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(2.5, 1.5, 1.25)
Part = Instance.new("Part")
Part.Name = "Front Right Seat Headrest 1"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(2.5, 3, 1.25)
Part = Instance.new("Part")
Part.Name = "Front Right Seat Headrest 2"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.9, 1.1, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(2.5, 3.8, 1.25)
Part = Instance.new("Part")
Part.Name = "Front Right Bumper"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.95)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 0, -7.075)
Part = Instance.new("Part")
Part.Name = "Front Left Bumper"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.95)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 0, -7.075)
Part = Instance.new("Part")
Part.Name = "Right Skirt 1"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 9)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.975)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(4.5, 0, 2)
Part = Instance.new("Part")
Part.Name = "Right Skirt 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 9)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.5, 0.975)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, -0.25, 2)
Part = Instance.new("Part")
Part.Name = "Left Skirt 1"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 9)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.975)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4.5, 0, 2)
Part = Instance.new("Part")
Part.Name = "Left Skirt 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 9)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.5, 0.975)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, -0.25, 2)
Part = Instance.new("Part")
Part.Name = "VehicleEngine"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 1, 3)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 1, -7)
coroutine.wrap(function(Part2)
while true do
if Driver ~= nil and Part2:FindFirstChild("Drive") == nil and Part2:FindFirstChild("Start") == nil and Health > 0 then
local Sound1 = Instance.new("Sound")
Sound1.Name = "Start"
Sound1.SoundId = "http://www.roblox.com/Asset/?id=31245452"
Sound1.Volume = 1
Sound1.Pitch = 0.95
Sound1.Parent = Part2
Sound1:Play()
wait(1)
local Sound2 = Instance.new("Sound")
Sound2.Name = "Drive"
Sound2.SoundId = "http://www.roblox.com/Asset/?id=2766576"
Sound2.Volume = 1
Sound2.Pitch = 0
Sound2.Looped = true
Sound2.Parent = Part2
Sound2:Play()
while Driver ~= nil and Vehicle.Parent ~= nil and Health > 0 do
Sound2.Pitch = 0.05 + (math.abs(ThrottlePercent) * 0.2)
wait()
end
coroutine.wrap(function()
for i = Sound1.Pitch, 0, -0.075 do
Sound1.Pitch = i
wait()
end
end)()
for i = Sound2.Pitch, 0, -0.01 do
Sound2.Pitch = i
wait()
end
Sound1:Stop()
Sound2:Stop()
wait(0.25)
Sound1:Remove()
Sound2:Remove()
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Grill"
Part.BrickColor = BrickColor.new("Medium stone grey")
Part.Reflectance = 0.2
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(4, 1, 2)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 2, -7.5)
Part = Instance.new("Part")
Part.Name = "Right Headlight"
Part.BrickColor = BrickColor.new("Institutional white")
Part.Transparency = 0.5
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 1, 2)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(3.5, 2, -7.5)
Part = Instance.new("Part")
Part.Name = "Right Front Turn Signal"
Part.BrickColor = BrickColor.new("New Yeller")
Part.Transparency = 0.5
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 2)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 2, -7.5)
Part = Instance.new("Part")
Part.Name = "Left Headlight"
Part.BrickColor = BrickColor.new("Institutional white")
Part.Transparency = 0.5
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 1, 2)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-3.5, 2, -7.5)
Part = Instance.new("Part")
Part.Name = "Left Front Turn Signal"
Part.BrickColor = BrickColor.new("New Yeller")
Part.Transparency = 0.5
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 2)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 2, -7.5)
Part = Instance.new("Part")
Part.Name = "Headlight Back"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 1, 4)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 2, -4.5)
Part = Instance.new("WedgePart")
Part.Name = "Hood"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 1, 6)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 3, -5.5)
Part = Instance.new("WedgePart")
Part.Name = "Front Well 1"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 1.25, -5.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
Part = Instance.new("WedgePart")
Part.Name = "Front Well 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 1.25, -2.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
Part = Instance.new("Part")
Part.Name = "Front Well 3"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(8, 1, 3)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 1, -4)
Part = Instance.new("Part")
Part.Name = "Front Left Roof Support"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 5, 1)
Part.CanCollide = false
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 4.75, -1.75) * CFrame.fromEulerAnglesXYZ(math.rad(25), 0, 0)
Part = Instance.new("Part")
Part.Name = "Front Right Roof Support"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 5, 1)
Part.CanCollide = false
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 4.75, -1.75) * CFrame.fromEulerAnglesXYZ(math.rad(25), 0, 0)
Part = Instance.new("Part")
Part.Name = "Front Window"
Part.BrickColor = BrickColor.new("Institutional white")
Part.Transparency = 0.75
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(10, 5, 1)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 4.75, -1.75) * CFrame.fromEulerAnglesXYZ(math.rad(25), 0, 0)
Part = Instance.new("Part")
Part.Name = "Roof"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 1, 4)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 6.729, 0.855)
Part = Instance.new("Part")
Part.Name = "Dashboard Back"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 4, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 1.5, -2.25)
Part = Instance.new("Part")
Part.Name = "Steeringwheel"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 2, 1)
Part.CanCollide = false
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Sphere"
Mesh.Scale = Vector3.new(1.25, 1.25, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-2.5, 3, -1.5)
Part = Instance.new("Part")
Part.Name = "Steering Column"
Part.BrickColor = BrickColor.new("Black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.CanCollide = false
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-2.5, 2.95, -1.9)
Part = Instance.new("Part")
Part.Name = "Left Turn Signal Button"
Part.BrickColor = BrickColor.new("Bright green")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(0.5, 0.5, 0.5)
Part.CanCollide = false
Part.Parent = Vehicle
Instance.new("CylinderMesh", Part)
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-0.5, 2.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Part2, Weld2)
local SignalOn = false
Open.MouseClick:connect(function()
SignalOn = not SignalOn
Part2.BrickColor = SignalOn == true and BrickColor.new("Institutional white") or BrickColor.new("Bright green")
coroutine.wrap(function()
if SignalOn == true then
for i = 0, 0.1, 0.01 do
Weld2.C1 = CFrame.new(0, i, 0)
wait()
end
Weld2.C1 = CFrame.new(0, 0.1, 0)
else
for i = 0.1, 0, -0.01 do
Weld2.C1 = CFrame.new(0, i, 0)
wait()
end
Weld2.C1 = CFrame.new(0, 0, 0)
end
end)()
end)
local i = false
coroutine.wrap(function()
while true do
i = not i
wait(0.5)
end
end)()
while true do
if Vehicle:FindFirstChild("Left Front Turn Signal") ~= nil then
if Vehicle["Left Front Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
Vehicle["Left Front Turn Signal"].Transparency = 0.5
else
Vehicle["Left Front Turn Signal"].Transparency = 0
end
end
if Vehicle:FindFirstChild("Left Rear Turn Signal") ~= nil then
if Vehicle["Left Rear Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
Vehicle["Left Rear Turn Signal"].Transparency = 0.5
else
Vehicle["Left Rear Turn Signal"].Transparency = 0
end
end
wait()
end
end)(Part, Weld)
Part = Instance.new("Part")
Part.Name = "Headlights Button"
Part.BrickColor = BrickColor.new("New Yeller")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(0.5, 0.5, 0.5)
Part.CanCollide = false
Part.Parent = Vehicle
Instance.new("CylinderMesh", Part)
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 2.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Part2, Weld2)
local HeadlightsOn = false
Open.MouseClick:connect(function()
HeadlightsOn = not HeadlightsOn
Part2.BrickColor = HeadlightsOn == true and BrickColor.new("Institutional white") or BrickColor.new("New Yeller")
coroutine.wrap(function()
if HeadlightsOn == true then
for i = 0, 0.1, 0.01 do
Weld2.C1 = CFrame.new(0, i, 0)
wait()
end
Weld2.C1 = CFrame.new(0, 0.1, 0)
else
for i = 0.1, 0, -0.01 do
Weld2.C1 = CFrame.new(0, i, 0)
wait()
end
Weld2.C1 = CFrame.new(0, 0, 0)
end
end)()
end)
while true do
if Vehicle:FindFirstChild("Left Headlight") ~= nil then
if Vehicle["Left Headlight"]:FindFirstChild("Weld") == nil or HeadlightsOn == false then
Vehicle["Left Headlight"].Transparency = 0.5
else
Vehicle["Left Headlight"].Transparency = 0
end
end
if Vehicle:FindFirstChild("Right Headlight") ~= nil then
if Vehicle["Right Headlight"]:FindFirstChild("Weld") == nil or HeadlightsOn == false then
Vehicle["Right Headlight"].Transparency = 0.5
else
Vehicle["Right Headlight"].Transparency = 0
end
end
wait()
end
end)(Part, Weld)
Part = Instance.new("Part")
Part.Name = "Right Turn Signal Button"
Part.BrickColor = BrickColor.new("Bright green")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(0.5, 0.5, 0.5)
Part.CanCollide = false
Part.Parent = Vehicle
Instance.new("CylinderMesh", Part)
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0.5, 2.5, -1.8) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Part2, Weld2)
local SignalOn = false
Open.MouseClick:connect(function()
SignalOn = not SignalOn
Part2.BrickColor = SignalOn == true and BrickColor.new("Institutional white") or BrickColor.new("Bright green")
coroutine.wrap(function()
if SignalOn == true then
for i = 0, 0.1, 0.01 do
Weld2.C1 = CFrame.new(0, i, 0)
wait()
end
Weld2.C1 = CFrame.new(0, 0.1, 0)
else
for i = 0.1, 0, -0.01 do
Weld2.C1 = CFrame.new(0, i, 0)
wait()
end
Weld2.C1 = CFrame.new(0, 0, 0)
end
end)()
end)
local i = false
coroutine.wrap(function()
while true do
i = not i
wait(0.5)
end
end)()
while true do
if Vehicle:FindFirstChild("Right Front Turn Signal") ~= nil then
if Vehicle["Right Front Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
Vehicle["Right Front Turn Signal"].Transparency = 0.5
else
Vehicle["Right Front Turn Signal"].Transparency = 0
end
if Vehicle:FindFirstChild("Right Rear Turn Signal") ~= nil then
if Vehicle["Right Rear Turn Signal"]:FindFirstChild("Weld") == nil or SignalOn == false or i == false then
Vehicle["Right Rear Turn Signal"].Transparency = 0.5
else
Vehicle["Right Rear Turn Signal"].Transparency = 0
end
end
end
wait()
end
end)(Part, Weld)
Part = Instance.new("Part")
Part.Name = "Front Left Door"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 3, 4)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-6, 1.5, -2)
Weld.C1 = CFrame.new(-0.5, 0, -2)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Weld2)
local IsOpen = false
local CanOpen = true
Open.MouseClick:connect(function()
if IsOpen == false and CanOpen == true then
CanOpen = false
IsOpen = true
for i = 0, 1, 0.1 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90 * i), 0)
wait()
end
CanOpen = true
elseif IsOpen == true and CanOpen == true then
CanOpen = false
IsOpen = false
for i = 1, 0, -0.1 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90 * i), 0)
wait()
end
CanOpen = true
end
end)
end)(Weld)
Part = Instance.new("Part")
Part.Name = "Front Right Door"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 3, 4)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(6, 1.5, -2)
Weld.C1 = CFrame.new(0.5, 0, -2)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Weld2)
local IsOpen = false
local CanOpen = true
Open.MouseClick:connect(function()
if IsOpen == false and CanOpen == true then
CanOpen = false
IsOpen = true
for i = 0, 1, 0.1 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90 * i), 0)
wait()
end
CanOpen = true
elseif IsOpen == true and CanOpen == true then
CanOpen = false
IsOpen = false
for i = 1, 0, -0.1 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90 * i), 0)
wait()
end
CanOpen = true
end
end)
end)(Weld)
Part = Instance.new("Part")
Part.Name = "Rear Right Bumper"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 2)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.95)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 0, 10.55)
Part = Instance.new("Part")
Part.Name = "Rear Left Bumper"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 2)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.95)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 0, 10.55)
Part = Instance.new("Part")
Part.Name = "Rear Center Bumper"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(8, 1, 3)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 0, 10)
Part = Instance.new("Part")
Part.Name = "Rear Left Roof Support"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 3, 1)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 4.729, 2.355)
Part = Instance.new("Part")
Part.Name = "Rear Right Roof Support"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 4, 1)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 4.729, 2.355)
Part = Instance.new("Part")
Part.Name = "Rear Window"
Part.BrickColor = BrickColor.new("Institutional white")
Part.Transparency = 0.75
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(8, 3, 1)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 4.729, 2.355)
Part = Instance.new("Part")
Part.Name = "Center"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(12, 3.25, 1)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 1.625, 2.355)
Part = Instance.new("Part")
Part.Name = "Left Rear Wall"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 4, 4)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 2, 4.5)
Part = Instance.new("Part")
Part.Name = "Right Rear Wall"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 4, 4)
Part.Parent = Vehicle
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 2, 4.5)
Part = Instance.new("Part")
Part.Name = "Rear Left Well 1"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 2, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1.25, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 2.75, 8)
Part = Instance.new("Part")
Part.Name = "Rear Left Well 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 4, 2)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.875, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 2.25, 10.5)
Part = Instance.new("Part")
Part.Name = "Rear Right Well 1"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 2, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1.25, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 2.75, 8)
Part = Instance.new("Part")
Part.Name = "Rear Right Well 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 4, 2)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.875, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 2.25, 10.5)
Part = Instance.new("WedgePart")
Part.Name = "Rear Left Well 3"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 1.25, 6.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
Part = Instance.new("WedgePart")
Part.Name = "Rear Right Well 3"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 1.25, 6.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
Part = Instance.new("WedgePart")
Part.Name = "Rear Left Well 4"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 1.25, 9.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
Part = Instance.new("WedgePart")
Part.Name = "Rear Right Well 4"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 1.25, 9.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
Part = Instance.new("Part")
Part.Name = "Rear Left Well 5"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1.01, 1.01, 1.2)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4.5, 1, 8)
Part = Instance.new("Part")
Part.Name = "Rear Right Well 5"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1.01, 1.01, 1.2)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(4.5, 1, 8)
Part = Instance.new("Part")
Part.Name = "Trunk"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(10, 4, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.875, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 0.5, 11)
Weld.C1 = CFrame.new(0, -1.75, -0.25)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Weld2)
local IsOpen = false
local CanOpen = true
Open.MouseClick:connect(function()
if IsOpen == false and CanOpen == true then
CanOpen = false
IsOpen = true
for i = 0, 1, 0.05 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), 0, 0)
wait()
end
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
CanOpen = true
elseif IsOpen == true and CanOpen == true then
CanOpen = false
IsOpen = false
for i = 1, 0, -0.05 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), 0, 0)
wait()
end
Weld2.C1 = CFrame.new(Weld2.C1.p)
CanOpen = true
end
end)
end)(Weld)
Part = Instance.new("Part")
Part.Name = "Left Brake Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4, 0.25, 0.25)
coroutine.wrap(function(Part2)
while true do
if Part2:FindFirstChild("Weld") == nil or IsBraking == false then
Part2.Transparency = 0.75
Part2.BrickColor = BrickColor.new("Dark red")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Really red")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Left Rear Turn Signal"
Part.BrickColor = BrickColor.new("New Yeller")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.5, 1.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.25, 2.25, 11.5)
Part = Instance.new("Part")
Part.Name = "Right Brake Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(4, 0.25, 0.25)
coroutine.wrap(function(Part2)
while true do
if Part2:FindFirstChild("Weld") == nil or IsBraking == false then
Part2.Transparency = 0.75
Part2.BrickColor = BrickColor.new("Dark red")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Really red")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Right Rear Turn Signal"
Part.BrickColor = BrickColor.new("New Yeller")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.5, 1.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.25, 2.25, 11.5)
Part = Instance.new("Part")
Part.Name = "Left Reverse Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4, -0.5, 0.25)
coroutine.wrap(function(Part2)
wait()
while true do
if Part2:FindFirstChild("Weld") == nil or ThrottlePercent >= 0 then
Part2.Transparency = 0.5
Part2.BrickColor = BrickColor.new("White")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Institutional white")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Right Reverse Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(4, -0.5, 0.25)
coroutine.wrap(function(Part2)
wait()
while true do
if Part2:FindFirstChild("Weld") == nil or ThrottlePercent >= 0 then
Part2.Transparency = 0.5
Part2.BrickColor = BrickColor.new("White")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Institutional white")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Rear Right Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 0, 8) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Part = Instance.new("Part")
Part.Name = "Rear Left Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 0, 8) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Part = Instance.new("Part")
Part.Name = "Front Right Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 0, -4) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Part = Instance.new("Part")
Part.Name = "Front Left Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 0, -4) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Vehicle:MoveTo((Workspace:FindFirstChild("adamfontenot") == nil and Vector3.new() or Workspace.adamfontenot.Torso.Position) + Vector3.new(9, 3, 0))
--[[
Vehicle Support v8
Variables:
Health
MaxHealth
ToughnessMinorDamage
ToughnessMajorDamage
DriftAcceleration
DriftSteerDifficulty
DriftSteerPower
Acceleration
TopSpeed
Deceleration
BrakePower
SteerDifficulty
SteerPower
TireFriction
TireElasticity
MasterColor
Wrecked
Vehicle (Model)
Base (Part)
Thrust (BodyVelocity)
Steer (BodyGyro)
Seat (VehicleSeat)
--]]
Wheels = {}
RearTraction = false
FrontTraction = false
DriftCheck = 0
Drifting = false
ThrottlePercent = 0
IsBraking = false
SteerPercent = 0
if Wrecked == true then Health = math.random(1, MaxHealth) end
for _, Part in pairs(Vehicle:GetChildren()) do
if Part:IsA("BasePart") then
Part.Locked = true
if Wrecked == true then
pcall(function() Part.Weld.C1 = Part.Weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-7.5, 7.5)), math.rad(math.random(-7.5, 7.5)), math.rad(math.random(-7.5, 7.5))) end)
if math.random(1, 5) == 1 then Part.Material = "CorrodedMetal" end
if math.random(1, 10) == 1 then Part.BrickColor = BrickColor.new("Black") end
if math.random(1, 50) == 1 then Part.BrickColor = BrickColor.new("Really black") end
end
if string.match(Part.Name, "VehicleSeat") == nil and string.match(Part.Name, "VehicleEngine") == nil and string.match(Part.Name, "VehicleBase") == nil and string.match(Part.Name, " Wheel") == nil then
Part.Touched:connect(function(Hit)
if Hit.Parent == nil then return end
if Hit.Parent == Vehicle then return end
if Hit.CanCollide == false then return end
if Part:FindFirstChild("Weld") == nil then return end
if string.match(Hit.Name, "VehicleSeat") or string.match(Hit.Name, "VehicleEngine") or string.match(Hit.Name, "VehicleBase") then return end
local velocity1 = {
math.abs(Part.Velocity.x),
math.abs(Part.Velocity.y),
math.abs(Part.Velocity.z)
}
local rotvelocity1 = {
math.abs(Part.RotVelocity.x),
math.abs(Part.RotVelocity.y),
math.abs(Part.RotVelocity.z)
}
local velocity2 = {
math.abs(Hit.Velocity.x),
math.abs(Hit.Velocity.y),
math.abs(Hit.Velocity.z)
}
local rotvelocity2 = {
math.abs(Hit.RotVelocity.x),
math.abs(Hit.RotVelocity.y),
math.abs(Hit.RotVelocity.z)
}
for i = 1, #velocity1 do
local Total = math.abs(velocity1 - velocity2)
if Total > ToughnessMinorDamage / 2 then
Health = Health - (Total / 10)
end
if Total > ToughnessMinorDamage then
ThrottlePercent = ThrottlePercent * 0.9
pcall(function() Part.Weld.C0 = Part.Weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
pcall(function() Part.Weld.C1 = Part.Weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
end
if Total > ToughnessMajorDamage and Hit:GetMass() > 3 then
ThrottlePercent = 0
Part:BreakJoints()
Part.Velocity = Part.Velocity + math.random(math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10))
Part.RotVelocity = Part.RotVelocity + math.random(math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25))
end
if Total > math.random(50, 75) then
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
local Tag = Instance.new("ObjectValue", Hit.Parent.Humanoid)
Tag.Name = "creator"
Tag.Value = Driver
coroutine.wrap(function() wait(1) Tag:Remove() end)()
end
Hit:BreakJoints()
end
end
for i = 1, #rotvelocity1 do
local Total = math.abs(velocity1 - velocity2)
if Total > ToughnessMinorDamage / 4 and not string.match(Part.Name, " Wheel") then
Health = Health - (Total / 10)
end
if Total > ToughnessMinorDamage / 2 and not string.match(Part.Name, " Wheel") then
ThrottlePercent = ThrottlePercent * 0.9
pcall(function() Part.Weld.C0 = Part.Weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
pcall(function() Part.Weld.C1 = Part.Weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
end
if Total > ToughnessMajorDamage / 2 and Hit:GetMass() > 3 then
ThrottlePercent = ThrottlePercent * 0.75
Part:BreakJoints()
Part.Velocity = Part.Velocity + Vector3.new(math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10))
Part.RotVelocity = Part.RotVelocity + Vector3.new(math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25))
end
if Total > math.random(50, 75) then
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
local Tag = Instance.new("ObjectValue", Hit.Parent.Humanoid)
Tag.Name = "creator"
Tag.Value = Driver
coroutine.wrap(function() wait(1) Tag:Remove() end)()
end
Hit:BreakJoints()
end
end
end)
end
if string.match(Part.Name, " Wheel") then
table.insert(Wheels, Part)
end
Part.ChildRemoved:connect(function(Object)
if Object.Name == "Weld" then
Health = Health - 25
end
end)
end
end
while true do
RearTraction = false
FrontTraction = false
for _, Part in pairs(Wheels) do
local Hit = Workspace:FindPartOnRay(Ray.new(Part.Position, (Part.Position - (Part.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) * CFrame.new(0, -1, 0)).p).unit * ((Part.Size.x / 2) + 0.5)), Vehicle)
if Hit ~= nil and Part:FindFirstChild("Weld") ~= nil then
if string.match(Part.Name, "Rear") then
RearTraction = true
else
FrontTraction = true
end
end
end
if Vehicle:FindFirstChild("VehicleEngine") ~= nil then
if Vehicle.VehicleEngine:FindFirstChild("Weld") == nil then
Health = 0
end
if pcall(function() return EffectHolder.Parent end) == false then
EffectHolder = Instance.new("Part")
EffectHolder.Name = ""
EffectHolder.CanCollide = false
EffectHolder.Anchored = true
EffectHolder.FormFactor = "Custom"
EffectHolder.Size = Vector3.new(1, 1, 1)
EffectHolder.TopSurface = 0
EffectHolder.BottomSurface = 0
EffectHolder.Transparency = 1
EffectHolder.Parent = Vehicle
end
EffectHolder.CFrame = CFrame.new(Vehicle.VehicleEngine.Position)
for _, Part in pairs(EffectHolder:GetChildren()) do
pcall(function() Part.Enabled = false end)
end
if Health <= 0 then
if EffectHolder:FindFirstChild("Smoke 0") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 0"
Smoke.Color = Color3.new(0.05, 0.05, 0.05)
Smoke.RiseVelocity = 12.5
Smoke.Size = 12.5
Smoke.Parent = EffectHolder
end
if EffectHolder:FindFirstChild("Fire 0") == nil then
local Fire = Instance.new("Fire")
Fire.Name = "Fire 0"
Fire.Heat = 10
Fire.Size = 20
Fire.Parent = EffectHolder
end
EffectHolder["Smoke 0"].Enabled = true
EffectHolder["Fire 0"].Enabled = true
elseif Health < MaxHealth * 0.15 then
if EffectHolder:FindFirstChild("Smoke 1") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 1"
Smoke.Color = Color3.new(0.25, 0.25, 0.25)
Smoke.RiseVelocity = 10
Smoke.Size = 10
Smoke.Parent = EffectHolder
end
if EffectHolder:FindFirstChild("Fire 1") == nil then
local Fire = Instance.new("Fire")
Fire.Name = "Fire 1"
Fire.Heat = 5
Fire.Size = 10
Fire.Parent = EffectHolder
end
EffectHolder["Smoke 1"].Enabled = true
EffectHolder["Fire 1"].Enabled = true
elseif Health < MaxHealth * 0.2 then
if EffectHolder:FindFirstChild("Smoke 2") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 2"
Smoke.Color = Color3.new(0.5, 0.5, 0.5)
Smoke.RiseVelocity = 9
Smoke.Size = 7.5
Smoke.Parent = EffectHolder
end
EffectHolder["Smoke 2"].Enabled = true
elseif Health < MaxHealth * 0.3 then
if EffectHolder:FindFirstChild("Smoke 3") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 3"
Smoke.Color = Color3.new(0.75, 0.75, 0.75)
Smoke.RiseVelocity = 7.5
Smoke.Size = 5
Smoke.Parent = EffectHolder
end
EffectHolder["Smoke 3"].Enabled = true
elseif Health < MaxHealth * 0.4 then
if EffectHolder:FindFirstChild("Smoke 4") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 4"
Smoke.Color = Color3.new(1, 1, 1)
Smoke.RiseVelocity = 5
Smoke.Size = 3
Smoke.Parent = EffectHolder
end
EffectHolder["Smoke 4"].Enabled = true
end
else
Health = 0
if EffectHolder ~= nil then
EffectHolder:Remove()
EffectHolder = nil
end
end
if ThrottlePercent < 0.2 then
Drifting = false
DriftCheck = 0
end
if Seat.Throttle == 1 then
if ThrottlePercent > 0.2 and tick() - DriftCheck < 0.5 and Drifting == false then
coroutine.wrap(function()
DriftCheck = 0
Drifting = true
local OldAcceleration = Acceleration
local OldSteerDifficulty = SteerDifficulty
local OldSteerPower = SteerPower
Acceleration = DriftAcceleration
SteerDifficulty = DriftSteerDifficulty
SteerPower = DriftSteerPower
local EffectHolder1 = Instance.new("Part")
EffectHolder1.Name = ""
EffectHolder1.CanCollide = false
EffectHolder1.Anchored = true
EffectHolder1.FormFactor = "Custom"
EffectHolder1.Size = Vector3.new(1, 1, 1)
EffectHolder1.TopSurface = 0
EffectHolder1.BottomSurface = 0
EffectHolder1.Transparency = 1
EffectHolder1.Parent = Vehicle
local Smoke = Instance.new("Smoke")
Smoke.Color = Color3.new(0.9, 0.9, 0.9)
Smoke.RiseVelocity = 15
Smoke.Size = 10
Smoke.Parent = EffectHolder1
local EffectHolder2 = Instance.new("Part")
EffectHolder2.Name = ""
EffectHolder2.CanCollide = false
EffectHolder2.Anchored = true
EffectHolder2.FormFactor = "Custom"
EffectHolder2.Size = Vector3.new(1, 1, 1)
EffectHolder2.TopSurface = 0
EffectHolder2.BottomSurface = 0
EffectHolder2.Transparency = 1
EffectHolder2.Parent = Vehicle
local Smoke = Instance.new("Smoke")
Smoke.Color = Color3.new(0.9, 0.9, 0.9)
Smoke.RiseVelocity = 15
Smoke.Size = 10
Smoke.Parent = EffectHolder2
while Drifting == true do
if pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true then
EffectHolder1.CFrame = Vehicle["Rear Left Wheel"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
else
EffectHolder1.Smoke.Enabled = false
end
if pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true then
EffectHolder2.CFrame = Vehicle["Rear Right Wheel"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
else
EffectHolder2.Smoke.Enabled = false
end
wait()
end
Acceleration = OldAcceleration
SteerDifficulty = OldSteerDifficulty
SteerPower = OldSteerPower
EffectHolder1.Smoke.Enabled = false
EffectHolder2.Smoke.Enabled = false
wait(7.5)
EffectHolder1:Remove()
EffectHolder2:Remove()
end)()
coroutine.wrap(function()
while Drifting == true do
if pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true then
local DriftSound = Instance.new("Sound")
DriftSound.SoundId = "http://www.roblox.com/Asset/?id=31245495"
DriftSound.Volume = 1
DriftSound.Pitch = math.random(90, 120) / 100
DriftSound.Parent = Vehicle["Rear Left Wheel"]
DriftSound:Play()
end
wait(math.random(35, 60) / 100)
end
end)()
coroutine.wrap(function()
while Drifting == true do
if pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true then
local DriftSound = Instance.new("Sound")
DriftSound.SoundId = "http://www.roblox.com/Asset/?id=31245495"
DriftSound.Volume = 1
DriftSound.Pitch = math.random(90, 120) / 100
DriftSound.Parent = Vehicle["Rear Right Wheel"]
DriftSound:Play()
end
wait(math.random(35, 60) / 100)
end
end)()
coroutine.wrap(function()
while Drifting == true do
if pcall(function() return Vehicle["Rear Wheel"].Weld end) == true then
local DriftSound = Instance.new("Sound")
DriftSound.SoundId = "http://www.roblox.com/Asset/?id=31245495"
DriftSound.Volume = 1
DriftSound.Pitch = math.random(90, 120) / 100
DriftSound.Parent = Vehicle["Rear Wheel"]
DriftSound:Play()
end
wait(math.random(35, 60) / 100)
end
end)()
end
if ThrottlePercent < 0 then
ThrottlePercent = ThrottlePercent + BrakePower
IsBraking = true
else
ThrottlePercent = ThrottlePercent + Acceleration
IsBraking = false
end
elseif Seat.Throttle == -1 then
Drifting = false
if ThrottlePercent > 0.1 then
ThrottlePercent = ThrottlePercent - BrakePower
IsBraking = true
DriftCheck = tick()
else
ThrottlePercent = ThrottlePercent - Acceleration
end
else
if ThrottlePercent < 0 then
ThrottlePercent = ThrottlePercent + Deceleration
elseif ThrottlePercent > 0 then
ThrottlePercent = ThrottlePercent - Deceleration
end
if ThrottlePercent > -Deceleration * 1.1 and ThrottlePercent < Deceleration * 1.1 then
ThrottlePercent = 0
end
end
if ThrottlePercent > 1 then ThrottlePercent = 1 end
if ThrottlePercent < -1 then ThrottlePercent = -1 end
if ThrottlePercent ~= 0 and RearTraction == true and (pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true or pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true or pcall(function() return Vehicle["Rear Wheel"].Weld end) == true) and Health > 0 then
Thrust.maxForce = Vector3.new(math.huge, 0, math.huge)
Thrust.velocity = Base.CFrame.lookVector * (TopSpeed * ThrottlePercent)
else
Thrust.maxForce = Vector3.new()
end
if Seat.Steer == 1 then
SteerPercent = SteerPercent - (SteerDifficulty * (1 - (math.abs(ThrottlePercent) / 10)))
elseif Seat.Steer == -1 then
SteerPercent = SteerPercent + (SteerDifficulty * (1 - (math.abs(ThrottlePercent) / 10)))
else
if SteerPercent < 0 then
SteerPercent = SteerPercent + SteerDifficulty
elseif SteerPercent > 0 then
SteerPercent = SteerPercent - SteerDifficulty
end
if SteerPercent > -SteerDifficulty * 1.1 and SteerPercent < SteerDifficulty * 1.1 then
SteerPercent = 0
Drifting = false
end
end
if SteerPercent > 1 then SteerPercent = 1 end
if SteerPercent < -1 then SteerPercent = -1 end
if SteerPercent ~= 0 and RearTraction == true and FrontTraction == true and (pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true or pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true) and (pcall(function() return Vehicle["Front Left Wheel"].Weld end) == true or pcall(function() return Vehicle["Front Right Wheel"].Weld end) == true) and Health > 0 then
Steer.maxTorque = Vector3.new(0, math.huge, 0)
Steer.cframe = (Base.CFrame - Base.Position) * CFrame.fromEulerAnglesXYZ(0, math.rad((SteerPercent * SteerPower) * ((ThrottlePercent * 10) > 1 and 1 or (ThrottlePercent * 10))), 0)
ThrottlePercent = ThrottlePercent - ((Acceleration * 0.95) * (1 - math.abs(SteerPercent)))
ThrottlePercent = ThrottlePercent - (Acceleration * (SteerPercent / 2))
else
Steer.maxTorque = Vector3.new()
Steer.cframe = CFrame.new()
end
local SteerAngle = SteerPercent * (SteerPower * 1.5)
if SteerAngle > 80 then SteerAngle = 80 end
if SteerAngle < -80 then SteerAngle = -80 end
for _, Part in pairs(Wheels) do
if string.match(Part.Name, "Front ") then
pcall(function()
Part.Weld.C0 = CFrame.new(Part.Weld.C0.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(SteerAngle), math.rad(90))
end)
end
end
if Seat:FindFirstChild("SeatWeld") ~= nil and Driver == nil then
local Part1 = Seat.SeatWeld.Part1
if Part1 ~= nil then
Driver = game:GetService("Players"):GetPlayerFromCharacter(Part1.Parent)
if Driver ~= nil then
local PlayerGui = Driver:FindFirstChild("PlayerGui")
if PlayerGui == nil then return end
local DriverGui = Instance.new("ScreenGui", PlayerGui)
DriverGui.Name = "DriverGui"
local Frame = Instance.new("Frame")
Frame.Name = "Content"
Frame.Size = UDim2.new(1, 0, 0, 100)
Frame.Position = UDim2.new(0, 0, 1, -100)
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
Frame.Parent = DriverGui
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "SpeedText1"
TextLabel.Size = UDim2.new(0, 85, 0, 15)
TextLabel.Position = UDim2.new(0, 15, 0, 7.5)
TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 1
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = "Speed"
TextLabel.TextXAlignment = "Left"
TextLabel.FontSize = "Size12"
TextLabel.Parent = DriverGui.Content
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "SpeedText2"
TextLabel.Size = UDim2.new(0, 85, 0, 15)
TextLabel.Position = UDim2.new(0, 15, 0, 7.5 + 15)
TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 1
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = "Bricks/sec."
TextLabel.TextXAlignment = "Left"
TextLabel.FontSize = "Size12"
TextLabel.Parent = DriverGui.Content
for i = 0, 1, 0.1 do
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "SpeedTextInc" ..i
TextLabel.Size = UDim2.new(0, 0, 0, 15)
TextLabel.Position = UDim2.new(0, 92 + (i * 200), 0, 37.5)
TextLabel.BorderSizePixel = 1
TextLabel.BackgroundTransparency = 0
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = math.floor(TopSpeed * i)
TextLabel.TextXAlignment = "Left"
TextLabel.Parent = DriverGui.Content
end
local Frame = Instance.new("Frame")
Frame.Name = "SpeedBack"
Frame.Size = UDim2.new(0, 200, 0, 30)
Frame.Position = UDim2.new(0, 100, 0, 7.5)
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0, 0)
Frame.Parent = DriverGui.Content
local Frame = Instance.new("Frame")
Frame.Name = "SpeedFront"
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0, 0.9)
Frame.Parent = DriverGui.Content
coroutine.wrap(function()
while DriverGui.Parent ~= nil do
DriverGui.Content.SpeedFront.Size = DriverGui.Content.SpeedBack.Size - UDim2.new(0, DriverGui.Content.SpeedBack.Size.X.Offset * (1 - math.abs(ThrottlePercent)), 0, 0)
DriverGui.Content.SpeedFront.Position = DriverGui.Content.SpeedBack.Position
wait()
end
end)()
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "DamageText"
TextLabel.Size = UDim2.new(0, 85, 0, 30)
TextLabel.Position = UDim2.new(0, 215, 0, 57.5)
TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 1
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = "Damage"
TextLabel.TextXAlignment = "Left"
TextLabel.FontSize = "Size12"
TextLabel.Parent = DriverGui.Content
local Frame = Instance.new("Frame")
Frame.Name = "DamageBack"
Frame.Size = UDim2.new(0, 250, 0, 30)
Frame.Position = UDim2.new(0, 300, 0, 57.5)
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0.5, 0)
Frame.Parent = DriverGui.Content
local Frame = Instance.new("Frame")
Frame.Name = "DamageFront"
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0.9, 0, 0)
Frame.Parent = DriverGui.Content
coroutine.wrap(function()
local i = math.pi * 1.5
while DriverGui.Parent ~= nil do
DriverGui.Content.DamageFront.Size = DriverGui.Content.DamageBack.Size - UDim2.new(0, DriverGui.Content.DamageBack.Size.X.Offset * (1 - ((MaxHealth - Health) / MaxHealth)), 0, 0)
DriverGui.Content.DamageFront.Position = DriverGui.Content.DamageBack.Position
if Health < MaxHealth * 0.15 then
i = i + 0.4
elseif Health < MaxHealth * 0.2 then
i = i + 0.25
elseif Health < MaxHealth * 0.3 then
i = i + 0.1
elseif Health < MaxHealth * 0.4 then
i = i + 0.075
end
DriverGui.Content.DamageFront.BackgroundColor3 = Color3.new(1 - ((math.sin(i) + 1) / 2), 0, 0)
DriverGui.Content.DamageBack.BackgroundColor3 = Color3.new(0, 0.5 - (((math.sin(i) + 1) / 2) * 0.5), 0)
wait()
end
end)()
end
end
elseif Seat:FindFirstChild("SeatWeld") == nil and Driver ~= nil then
if Driver:FindFirstChild("PlayerGui") ~= nil then
if Driver.PlayerGui:FindFirstChild("DriverGui") ~= nil then
Driver.PlayerGui.DriverGui:Remove()
end
end
Driver = nil
end
if Health <= 0 then
Health = 0
ThrottlePercent = 0
if Vehicle:FindFirstChild("VehicleEngine") ~= nil then
if math.random(1, 1000) == 1 or Vehicle.VehicleEngine:FindFirstChild("Weld") == nil then
local Explosion = Instance.new("Explosion")
Explosion.BlastPressure = 5000 * ToughnessMajorDamage
Explosion.BlastRadius = ToughnessMajorDamage / 10
Explosion.Position = Vehicle.VehicleEngine.Position
Explosion.Parent = Workspace
Vehicle.VehicleEngine.Name = "Exploded VehicleEngine"
end
end
end
wait()
end
end)
end;
task.spawn(C_10);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.LocalScript
local function C_11()
local script = LMG2L["LocalScript_11"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
local playerLeaderstats = {}
for i, v in pairs(game.Players:GetChildren()) do
table.insert(playerLeaderstats, v)
end
for i, v in pairs(playerLeaderstats) do
pe = Instance.new("ParticleEmitter",v.Character.Torso)
pe.Texture = "http://www.roblox.com/asset/?id=127476787"
pe.VelocitySpread = 50
end
end)
end;
task.spawn(C_11);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.LocalScript
local function C_12()
local script = LMG2L["LocalScript_12"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
wait()
s = Instance.new("Sky")
s.Parent = game.Lighting
s.Name = "awesome skybox"
while true do
s.SkyboxBk = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21076888"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21076945"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077007"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077125"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077227"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077345"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077227"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077125"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077007"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21076945"
end
end)
end;
task.spawn(C_12);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.LocalScript
local function C_13()
local script = LMG2L["LocalScript_13"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
--[[
love u iFractal
<3
leeked by CLarramore
]]
-- made by a new user (iFractal) leaked by a logger with love
--One Punch Man Script
p = game.Players.LocalPlayer
char = p.Character
des = false
fling = true
dot = false
falling = false
jump = true
--char.Shirt:Remove()
--for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
wait()--shirt = Instance.new("Shirt", char)
--shirt.Name = "Shirt"
--pants = Instance.new("Pants", char)
--pants.Name = "Pants"
--char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
--char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
tp = true
shoot = true
hum = char.Humanoid
punch = true
neckp = char.Torso.Neck.C0
neck = char.Torso.Neck
hum.MaxHealth = 999999999
wait()
hum.Health =hum.MaxHealth
des = false
root=char.HumanoidRootPart
torso = char.Torso
char.Head.face.Texture = "rbxassetid://332768867"
local ChatService = game:GetService("Chat")
local player = game.Players.LocalPlayer
lig = Instance.new("PointLight",player.Character.Torso)
lig.Color=Color3.new(255,0,0)
m=player:GetMouse()
bb = Instance.new("BillboardGui",player.Character.Head)
bb.Enabled = true
function newRay(start,face,range,wat)
local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
return rey,hit,pos
end
aa1={}
torso=game.Players.LocalPlayer.Character.Torso
local WorldUp = Vector3.new(0,1,0)
function look2(Vec1,Vec2)
local Orig = Vec1
Vec1 = Vec1+Vector3.new(0,1,0)
Vec2 = Vec2+Vector3.new(0,1,0)
local Forward = (Vec2-Vec1).unit
local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
local Right = Up:Cross(Forward).unit
Forward = -Forward
Right = -Right
return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function look(CFr,Vec2)
local A = Vector3.new(0,0,0)
local B = CFr:inverse()*Vec2
local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
if B.Z > 0 then
CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
elseif B.Z == 0 then
if B.Y > 0 then
CF = CFr*CFrame.Angles(math.pi/2,0,0)
elseif B.Y < 0 then
CF = CFr*CFrame.Angles(-math.pi/2,0,0)
else
CF = CFr
end
end
local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
local Up = Vector3.new(X,Y,Z)
local Forward = (Vec2-CFr.p).unit
local Right = Up:Cross(Forward)
Forward = -Forward
Right = -Right
return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function simulate(j,d,m,r,t)
local joint = j
for i,v in ipairs(t) do
if v[1]:FindFirstChild("Weld") then
local stiff = m.CFrame.lookVector*0.03
if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
local pos = joint.p+(dir*(d*0.5))
--if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
local inv = v[1].Weld.Part0.CFrame
local rel1 = inv:inverse()*pos
local rel2 = inv:inverse()*(pos-(dir*dis))
local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
v[1].Weld.C0 = cf
v[2] = inv*cf
--v[1].CFrame = cf
end
end
end
for i=1,8 do
local p = Instance.new("Part",char)
p.Anchored = false
p.BrickColor = BrickColor.new("Institutional white")
p.CanCollide = false
p.FormFactor="Custom"
p.Material = "SmoothPlastic"
p.TopSurface = "SmoothNoOutlines"
p.BottomSurface = "SmoothNoOutlines"
p.RightSurface = "SmoothNoOutlines"
p.LeftSurface = "SmoothNoOutlines"
p.FrontSurface = "SmoothNoOutlines"
p.BackSurface = "SmoothNoOutlines"
p.Size=Vector3.new(2,.2,0.2)
p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
mesh = Instance.new("BlockMesh",p)
mesh.Scale = Vector3.new(1,1,4)
local w = Instance.new("Motor6D",p)
w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
w.Part1 = p
w.Name = "Weld"
--table.insert(aa1,p)
aa1[i] = {p,p.CFrame}
end
game:service"RunService".Stepped:connect(function()
simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
end)
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0,200,0,50)
bb.StudsOffset = Vector3.new(0,1,0)
gui=Instance.new("TextBox",bb)
gui.Text = "* "
gui.Size = UDim2.new(0,133,0,45)
gui.Position=UDim2.new(0,57,0,-40)
gui.TextColor3 = Color3.new(255,255,255)
gui.BackgroundColor3=Color3.new(0,0,0)
gui.TextWrapped = true
gui.TextScaled = true
gui.TextXAlignment = "Left"
gui.TextYAlignment = "Top"
gui.Visible = false
gui.BorderColor3 = Color3.new(0,0,0)
punch2 = true
gui1=Instance.new("TextButton",bb)
gui1.Position=UDim2.new(0,5,0,-43)
gui1.Size = UDim2.new(0,190,0,51)
gui1.TextColor3 = Color3.new(255,255,255)
gui1.BackgroundColor3=Color3.new(255,255,255)
jump2 = true
gui1.Visible = false
img = Instance.new("ImageLabel",bb)
img.Size = UDim2.new(0,46,0,47)
img.Position = UDim2.new(0,10,0,-41)
img.Image = "rbxassetid://447301252"
img.BorderColor3 = Color3.new(0,0,0)
img.Visible = false
soka = Instance.new("Sound",char)
soka.SoundId = "http://www.roblox.com/asset/?id = 447199232"
soka.Volume = 1
boom = Instance.new("Sound",char)
boom.SoundId = "http://www.roblox.com/asset/?id = 447041606"
boom.Volume = 1
boom2 = Instance.new("Sound",char)
boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737"
boom2.Volume = 1
boom3 = Instance.new("Sound",char)
boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019"
boom3.Volume = 1
tps = Instance.new("Sound",char)
tps.SoundId = "http://www.roblox.com/asset/?id = 449860746"
tps.Volume = 1
asd = Instance.new("Sound",char)
asd.SoundId = "http://www.roblox.com/asset/?id = 447310433"
asd.Volume =1
asd1 = Instance.new("Sound",char)
asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
asd2 = Instance.new("Sound",char)
asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054"
asd2.Looped = true
asd2.Volume = 5
asd3 = Instance.new("Sound",char)
asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996"
asd3.Looped = true
asd4 = Instance.new("Sound",char)
asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325"
asd4.Looped = true
asd5 = Instance.new("Sound",char)
asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261"
asd5.Looped = true
gas = Instance.new("Sound",char)
gas.SoundId = "http://www.roblox.com/asset/?id = 345052019"
asd6 = Instance.new("Sound",char)
asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325"
asd6.Looped = true
function play(play)
asd:Play()
wait(0.05)
--asd1:Play()
end
------------
-------------------------
function stream(origin,dir,length,size)
local parts = {}
for i = 1,length do
local p = Instance.new("Part",char)
p.Anchored = true
p.Transparency = 0.5
p.TopSurface = 0
p.BottomSurface = 0
p.CanCollide = false
p.BrickColor = BrickColor.new("Institutional white")
p.Size = Vector3.new(10,30,10) -- for now
p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
game:GetService("Debris"):AddItem(p,3)
end
Spawn(function()
while parts do
for i,v in pairs(parts) do
if v[1].Parent == char then
v[1].CFrame = v[1].CFrame*v[2]
else
parts = nil
break
end
end
wait(0.02)
end
end)
end
--[[-- listen for their chatting
player.Chatted:connect(function(message)
a = string.len(message)
gui.Text = ""
gui.Visible = true
gui1.Visible = true
des = false
img.Visible = true
print(a)
if dot == false then
gui.Text = ""
for i = 1,string.len(message) do
gui.Text =gui.Text..message:sub(i,i)
play()
end
end
des = true
end)]]--
m.KeyDown:connect(function(k)
if k == "g" then
asd2:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "r" then
asd4:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "q" then
asd3:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "z" then
img.Image = "rbxassetid://332766052"
end
end)
m.KeyDown:connect(function(k)
if k == "c" then
img.Image = "rbxassetid://447301252"
end
end)
m.KeyDown:connect(function(k)
if k == "b" then
asd6:Play()
end
end)
mouse = p:GetMouse()
m.KeyDown:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 100
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 50 then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 52 then
char.Head.face.Texture = "rbxassetid://444037452"
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 51 then
char.Head.face.Texture = "rbxassetid://332768867"
end
end)
m.KeyUp:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 16
end
end)
p.Chatted:connect(function(m)
if m == "Okay." then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "x" then
if des == true then
gui.Visible = false
gui.Text = "* "
gui1.Visible = false
img.Visible = false
end
end
end)
m.KeyDown:connect(function(key)
if key == "j" then
if tp == true then
tp = false
tps:Play()
char.Head.face.Parent = game.Lighting
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
end
end
wait(0.5)
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
end
end
char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
char.HumanoidRootPart.Transparency = 1
game.Lighting.face.Parent = char.Head
wait(0.2)
tp = true
end
end
end)
m.KeyDown:connect(function(key)
if key == "t" then
if punch2 == true then
punch2 = false
punch = false
local ChatService = game:GetService("Chat")
neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
ChatService:Chat(char.Head, "Mind if I get Serious?")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head, "SERIOUS PUNCH.")
neck.C0 = neckp
wait(0.6)
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
wait()
killbrick2 = Instance.new("Part",char)
killbrick2.Size = Vector3.new(80,80,9000)
killbrick2.Transparency = 1
killbrick2.CanCollide = true
wait(0.1)
killbrick2.CanCollide = false
killbrick2.Anchored = true
killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
killbrick2.Touched:connect(function(h)
local x = h.Parent:FindFirstChild("Humanoid")
if x then
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x.Parent:BreakJoints()
wait()
safe = true
end
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
local rng1 = Instance.new("Part", char)
rng1.Anchored = true
rng1.BrickColor = BrickColor.new("Institutional white")
rng1.CanCollide = false
rng1.FormFactor = 3
rng1.Name = "Ring"
rng1.Size = Vector3.new(1, 1, 1)
rng1.Transparency = 0.8
rng1.TopSurface = 0
rng1.BottomSurface = 0
rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm1 = Instance.new("SpecialMesh", rng1)
rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm1.Scale = Vector3.new(1, 1.3, 2)
local p = (torso.CFrame*CFrame.new(-20,0,3))
stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
local p = (torso.CFrame*CFrame.new(20,0,3))
stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
local rng2 = Instance.new("Part", char)
rng2.Anchored = true
rng2.BrickColor = BrickColor.new("Institutional white")
rng2.CanCollide = false
rng2.FormFactor = 3
rng2.Name = "Ring"
rng2.Size = Vector3.new(1, 1, 1)
rng2.Transparency = 0.8
rng2.TopSurface = 0
rng2.BottomSurface = 0
rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm2 = Instance.new("SpecialMesh", rng2)
rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm2.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom3:Play()
coroutine.wrap(function()
for i = 1, 35, 0.5 do
rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
wait()
end
wait()
rng:Destroy()
rng1:Destroy()
rng2:Destroy()
killbrick2:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch2 = true
punch = true
wait()
end)()
end
wait(.1)
end
end)
m.KeyDown:connect(function(key)
if key == "k" then
if punch == true then
punch = false
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
killbrick = Instance.new("Part",char)
killbrick.Size = Vector3.new(5,1,5)
killbrick.Transparency = 1
killbrick:BreakJoints()
killbrick.CanCollide = false
local wel = Instance.new("Weld",killbrick)
wel.Part0 = killbrick
wel.Part1 = char["Left Arm"]
wel.C0 = CFrame.new(0,1,0)
force = 90
killbrick.Touched:connect(function(h)
local x = h.Parent.Humanoid
if x.Health >= 6000 then
fling = false
end
if x.Health < 6000 then
fling = true
end
local stop = h.Parent.Torso.Velocity
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
if fling == true then
force = 900
end
if fling == false then
force = 200
end
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x:TakeDamage(5000)
wait()
safe = true
bodyforc:Remove()
h.Parent.Torso.Velocity = stop
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom2:Play()
coroutine.wrap(function()
for i = 1, 10, .4 do
rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
wait()
end
wait()
rng:Destroy()
killbrick:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch = true
wait()
end)()
end
wait(.1)
end
end)
m.KeyDown:connect(function(key)
if key == "m" then
if jump == true then
jump = false
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.35
rng.TopSurface = 0
rng.BottomSurface = 0
rng.Position = torso.Position - Vector3.new(0,2,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
BV = Instance.new("BodyVelocity", torso)
BV.maxForce = Vector3.new(0,20000,0)
BV.P = 1000
BV.velocity = Vector3.new(0,100,0)
boom:Play()
coroutine.wrap(function()
for i = 1, 60, 2 do
rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
rng.Transparency = i/60
wait()
end
wait()
rng:Destroy()
hum.WalkSpeed = 50
wait(1)
for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false
end end
wait()
end)()
end
wait(.1)
end
end)
m.KeyDown:connect(function(key)
if key == "n" then
if falling == true then
falling = false
if jumping2 == true then
jumping2 = false
jump = false
BV = Instance.new("BodyVelocity", torso)
BV.maxForce = Vector3.new(0,-20000,0)
BV.P = -1000
BV.velocity = Vector3.new(0,-70,0)
wait(0.6)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.35
rng.TopSurface = 0
rng.BottomSurface = 0
rng.Position = torso.Position - Vector3.new(0,2,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
boom:Play()
coroutine.wrap(function()
for i = 1, 60, 2 do
rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
rng.Transparency = i/60
wait()
end
wait()
rng:Destroy()
for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16
end end
wait()
end)()
end
wait(.1)
end
end
end)
m.KeyDown:connect(function(k)
if k == "f" then
asd3:Stop()
asd2:Stop()
asd4:Stop()
asd6:Stop()
asd5:Stop()
end
end)
------------
-- ~CLarramore 2016
--==Made by NextFlame==--
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
local player=game.Players.LocalPlayer
local char=player.Character
local torso=char.Torso
local head=char.Head
local human=char.Humanoid
local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
local joints={LeftShoulder=torso["Left Shoulder"], RightShoulder=torso["Right Shoulder"], LeftHip=torso["Left Hip"], RightHip=torso["Right Hip"]}
joints.LeftShoulder.Part0=torso
joints.RightShoulder.Part0=torso
joints.LeftHip.Part0=torso
joints.RightHip.Part0=torso
local c=function(f) Spawn(f) end
local add={
Part=function(par, a, c, col, t, s, cf, ms)
local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
return p
end,
Wedge=function(par, a, c, col, t, s, cf, ms)
local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
return p
end,
Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
return g
end,
Weld=function(par, p1, cf)
local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
return w
end,
Mesh=function(ins, par, s, of, t, id)
local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshId=id or "" m.MeshType=t end)
return m
end,
Sound=function(parent, id, volume, pitch)
local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
return s
end,
}
local modelName="Kung Fu" --Name here
pcall(function() player.Backpack[modelName]:remove() char[modelName]:remove() char["CharacterParts"]:remove() end)
local model=Instance.new("Model", char) model.Name="CharacterParts"
local modelB=Instance.new("Model", char) modelB.Name=modelName
local bin=Instance.new("HopperBin", player.Backpack) bin.Name=modelName
local skincolor="Really black"
local gui=Instance.new("ScreenGui")
local body={}
local animate={}
local obj={}
--Variables--
local trailDeb=false
local keyDeb=false
local hitDeb=false
local loop=false
local speed=16
local combo=0
local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, 1.2)
local Hit=add.Sound(torso, "http://roblox.com/asset/?id=10209225", 1, 1)
function createParts()
--==PARTS==--
torso.Transparency=1
for i, v in pairs(char:children()) do if v:isA("CharacterMesh") then v:remove() end end
gui.Parent=player.PlayerGui gui.Name=modelName
body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
--==WELDS==--
body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
body.TorsoW=add.Weld(body.Torso, torso, nil)
body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1, 0))
--==WELDS2==--
add.Weld(body.Head, head, nil)
add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
joints.LeftHip.Part0=body.Torso
joints.RightHip.Part0=body.Torso
--==Sign==--
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
add.Weld(body.Part, body.Torso, CFrame.new(-.25, 0, .5))
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, .5))
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
add.Weld(body.Part, body.Torso, CFrame.new(.25, 0, -.5))
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, -.5))
---------------------------------------------------------------------------------------
animate={
["Head"]=function(cf)
body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
end;
["Torso"]=function(cf)
body.TorsoW.C1=(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
end;
["ArmLeft"]=function(cf)
body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
end;
["ArmRight"]=function(cf)
body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
end;
["LegLeft"]=function(cf)
legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -1, 0))
body.LegLeftW.C1=CFrame.new(-.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
coroutine.resume(coroutine.create(function()
wait()
legLeftW:remove()
end))
end;
["LegRight"]=function(cf)
legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -1, 0))
body.LegRightW.C1=CFrame.new(.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
coroutine.resume(coroutine.create(function()
wait()
legRightW:remove()
end))
end;
}
--==Objects==--
obj.attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "(5) Combos", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
obj.attackLabel2=add.Gui("TextLabel", obj.attackLabel, "Really black", "Really black", "White", "Size18", "Punch[Right]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel3=add.Gui("TextLabel", obj.attackLabel2, "Really black", "Really black", "White", "Size18", "Punch[Left]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel4=add.Gui("TextLabel", obj.attackLabel3, "Really black", "Really black", "White", "Size18", "Kick[Right]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel5=add.Gui("TextLabel", obj.attackLabel4, "Really black", "Really black", "White", "Size18", "Kick[Left]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel6=add.Gui("TextLabel", obj.attackLabel5, "Really black", "Really black", "White", "Size18", "RappidKick", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
for i, v in pairs(modelB:children()) do
if i==0 then return end
end
--==Weapon==--
end
function removeParts()
pcall(function()
if torso then
joints.LeftShoulder.Part0=torso
joints.RightShoulder.Part0=torso
joints.LeftHip.Part0=torso
joints.RightHip.Part0=torso
torso.Transparency=0
end
player.PlayerGui[modelName]:remove()
for i, v in pairs(model:children()) do v:remove() end
end)
end
function lightningGen(startPos, endPos)
local magnitude=(startPos-endPos).magnitude
local distance=(startPos+endPos)/2
local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
local startPosProx=startPos
for i=1, 9 do
local startPosProx2=startPosProx
local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
local findSize=pattern.Size.z/10
local findOffSet=pattern.CFrame.lookVector*-1
local compute=i*findSize*findOffSet
local newStartPos=startPos
local newEndPos=CFrame.new(random+compute+newStartPos).p
local magnitude=(startPosProx2-newEndPos).magnitude
local distance=(startPosProx2+newEndPos)/2
local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
c(function()
for i=0, 1, .1 do wait()
lightning.Transparency=i
end
lightning:remove()
end)
startPosProx=newEndPos
end
pattern:remove()
end
function computePos(pos, pos2)
local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
return CFrame.new(pos, pos3)
end
function nearTorso(pos, dis)
local temp
local distance=dis
for i, v in pairs(workspace:children()) do
if v:isA("Model") then
temp=v:findFirstChild("Torso")
local humanoid=v:findFirstChild("Humanoid")
if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
distance=(temp.CFrame.p-pos).magnitude
return temp
end
end
end
end
function trail(pos, cf, col, size)
c(function()
local old=(pos.CFrame*cf).p
while trailDeb==true do
wait()
local new=(pos.CFrame*cf).p
local mag=(old-new).magnitude
local dis=(old+new)/2
local trail=add.Part(workspace, true, false, col or "White", 0, Vector3.new(size or .2, mag, size or .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Effect"
local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil)
old=new
c(function()
for i=1, 0, -.1 do
wait()
tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
end
trail:remove()
end)
c(function()
for i=0, 1, .1 do
wait()
trail.Transparency=i
end
end)
end
end)
end
function rayCast(pos, dir, col)
local magnitude=(pos-dir).magnitude
local distance=(pos+dir)/2
local ray=add.Part(workspace, true, false, col, 0, Vector3.new(.2, magnitude, .2), CFrame.new(distance, pos))
return ray
end
function dmgHit(h)
local dmg=math.random(5, 10)
if keyDeb==true and h.Parent:findFirstChild("Humanoid") and hitDeb==false and h.Parent~=char then
hitDeb=true
local hHuman=h.Parent:findFirstChild("Humanoid")
local hTorso=h.Parent:findFirstChild("Torso")
hHuman.Health=hHuman.Health-dmg
local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
local effect=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(1, 1, 1), hTorso.CFrame*CFrame.new(0, 4, 0)) effect.Name="Head"
local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
local effect=add.Part(workspace, true, false, "White", .5, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p)*CFrame.Angles(-math.pi/2, 0, 0))
local effectM=add.Mesh("SpecialMesh", effect, Vector3.new(1, 1, 1), nil, nil, "http://www.roblox.com/asset/?id=20329976")
c(function()
for i=1, 2, .1 do wait()
effectM.Scale=Vector3.new(i, i/2, i)
end
effect:remove()
end)
game.Debris:addItem(fakeM, 1)
wait(.1)
hitDeb=false
end
end
function idled()
animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(math.rad(135), 0, math.rad(5)))
animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(math.rad(135), 0, -math.rad(5)))
end
function doAttacks()
combo=combo+1
if keyDeb==false then
keyDeb=true
if combo>0 then Slash:play()
trailDeb=true
trail(body.ArmRight, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
animate.ArmRight(CFrame.Angles(math.rad(90), 0, math.rad(90)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
animate.ArmRight(CFrame.Angles(math.rad(90), 0, math.rad(90)*i))
end
end
if combo>2 then Slash:play()
trailDeb=true
trail(body.ArmLeft, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
animate.ArmLeft(CFrame.Angles(math.rad(90), 0, -math.rad(90)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
animate.ArmLeft(CFrame.Angles(math.rad(90), 0, -math.rad(90)*i))
end
end
if combo>3 then Slash:play()
idled()
trailDeb=true
trail(body.LegRight, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, math.rad(90)*i, 0))
animate.LegLeft(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(135)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, math.rad(90)*i, 0))
animate.LegLeft(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(135)*i))
end
end
if combo>4 then Slash:play()
idled()
trailDeb=true
trail(body.LegLeft, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, -math.rad(90)*i, 0))
animate.LegRight(CFrame.new(.5*i, 0, 0)*CFrame.Angles(0, 0, math.rad(135)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, -math.rad(90)*i, 0))
animate.LegRight(CFrame.new(.5*i, 0, 0)*CFrame.Angles(0, 0, math.rad(135)*i))
end
end
if combo>5 then
idled()
for i=0, 1, .2 do wait()
animate.Torso(CFrame.new(0, -.8*i, 0)*CFrame.Angles(math.rad(80)*i, -math.rad(90)*i, 0))
end
for i=1, 20 do wait() Slash:play()
torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
animate.LegLeft(CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
animate.LegRight(CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
end
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.new(0, -.8*i, 0)*CFrame.Angles(math.rad(80)*i, -math.rad(90)*i, 0))
end
end
trailDeb=false
keyDeb=false
combo=0
idled()
end
for i, v in pairs(player.Character:GetChildren()) do
if v:IsA("BasePart") then
v.Touched:connect(function(player)
if player.Size.X<30 then
player.Anchored = false
player:BreakJoints()
end
end)
end
end
end
bin.Selected:connect(function(mouse) createParts()
for i, v in pairs(char:children()) do if v:isA("BasePart") then v.Touched:connect(dmgHit) end end
for i=0, 1, .1 do wait()
animate.ArmLeft(CFrame.new(.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, math.rad(5)*i))
animate.ArmRight(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(5)*i))
end
mouse.Button1Down:connect(doAttacks)
end)
bin.Deselected:connect(function()
for i=1, 0, -.1 do wait()
animate.ArmLeft(CFrame.new(.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, math.rad(5)*i))
animate.ArmRight(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(5)*i))
end
removeParts()
end)--mediafire
end)
end;
task.spawn(C_13);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.LocalScript
local function C_14()
local script = LMG2L["LocalScript_14"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Polaria-LoadString-61107"))()
end)
end;
task.spawn(C_14);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.LocalScript
local function C_16()
local script = LMG2L["LocalScript_16"];
local UIS = game:GetService("UserInputService")
local frame = script.Parent
local dragging = false
local dragStart
local startPos
local function update(input)
local delta = input.Position - dragStart
frame.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
end
frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement
or input.UserInputType == Enum.UserInputType.Touch then
if dragging then
update(input)
end
end
end)
end;
task.spawn(C_16);
return LMG2L["ScreenGui_1"], require;



the name made me shed a white tear
No es para juegos backdoor?
No backdoor
ITS SERVERSIDE!!