Quick actions

cmd+k|ctrl+k

Navigation

Languages

Xiao Car

Snippet info

Language

Lua

Visibility

public

Author

enabling05

Created

2019-09-12T19:20:50Z

Updated

2025-10-26T16:57:37.714333Z

print("FE code by Starzozero, Thanks to him!")
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
local Player,game,owner = owner,game
local RealPlayer = Player
do
	print("FE Compatibility code by Mokiros, Edited by StarzoZero")
	local rp = RealPlayer
	script.Parent = rp.Character
	
	--RemoteEvent for communicating
	local Event = Instance.new("RemoteEvent")
	Event.Name = "UserInput_Event"

	--Fake event to make stuff like Mouse.KeyDown work
	local function fakeEvent()
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
		t.connect = t.Connect
		return t
	end

	--Creating fake input objects with fake variables
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
	end}
	--Merged 2 functions into one by checking amount of arguments
	CAS.UnbindAction = CAS.BindAction

	--This function will trigger the events that have been :Connect()'ed
	local function te(self,ev,...)
		local t = m[ev]
		if t and t._fakeEvent then
			for _,f in pairs(t.Functions) do
				f(...)
			end
		end
	end
	m.TrigEvent = te
	UIS.TrigEvent = te

	Event.OnServerEvent:Connect(function(plr,io)
	    if plr~=rp then return end
		m.Target = io.Target
		m.Hit = io.Hit
		if not io.isMouse then
			local b = io.UserInputState == Enum.UserInputState.Begin
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
			end
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
				return m:TrigEvent(b and "Button2Down" or "Button2Up")
			end
			for _,t in pairs(CAS.Actions) do
				for _,k in pairs(t.Keys) do
					if k==io.KeyCode then
						t.Function(t.Name,io.UserInputState,io)
					end
				end
			end
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
	    end
	end)
	Event.Parent = NLS([==[
	local Player = game:GetService("Players").LocalPlayer
	local Event = script:WaitForChild("UserInput_Event")
	local Mouse = Player:GetMouse()
	local UIS = game:GetService("UserInputService")
	local input = function(io,a)
		if a then return end
		--Since InputObject is a client-side instance, we create and pass table instead
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
	end
	UIS.InputBegan:Connect(input)
	UIS.InputEnded:Connect(input)
	local h,t
	--Give the server mouse data 30 times every second, but only if the values changed
	--If player is not moving their mouse, client won't fire events
	while wait(1/30) do
		if h~=Mouse.Hit or t~=Mouse.Target then
			h,t=Mouse.Hit,Mouse.Target
			Event:FireServer({isMouse=true,Target=t,Hit=h})
		end
	end]==],Player.Character)

	----Sandboxed game object that allows the usage of client-side methods and services
	--Real game object
	local _rg = game

	--Metatable for fake service
	local fsmt = {
		__index = function(self,k)
			local s = rawget(self,"_RealService")
			if s then
				return typeof(s[k])=="function"
				and function(_,...)return s[k](s,...)end or s[k]
			end
		end,
		__newindex = function(self,k,v)
			local s = rawget(self,"_RealService")
			if s then s[k]=v end
		end
	}
	local function FakeService(t,RealService)
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
		return setmetatable(t,fsmt)
	end

	--Fake game object
	local g = {
		GetService = function(self,s)
			return rawget(self,s) or _rg:GetService(s)
		end,
		Players = FakeService({
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
		},"Players"),
		UserInputService = FakeService(UIS,"UserInputService"),
		ContextActionService = FakeService(CAS,"ContextActionService"),
		RunService = FakeService({
			_btrs = {},
			RenderStepped = _rg:GetService("RunService").Heartbeat,
			BindToRenderStep = function(self,name,_,fun)
				self._btrs[name] = self.Heartbeat:Connect(fun)
			end,
			UnbindFromRenderStep = function(self,name)
				self._btrs[name]:Disconnect()
			end,
		},"RunService")
	}
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
	g.service = g.GetService
	FakeService(g,game)
	--Changing owner to fake player object to support owner:GetMouse()
	game,owner = g,g.Players.LocalPlayer
end

--[[screw bumper cars now we have...
	
	
	
	
	A REAL FUCKING CAR HOLY SHIT!!!!1!1
	(by xiaxiaokid, flying by OsterDog)
]]

local Player = game.Players.localPlayer
local Character = Player.Character
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
local mouse = Player:GetMouse()
local LeftArm = Character["Left Arm"]
local RightArm = Character["Right Arm"]
local LeftLeg = Character["Left Leg"]
local RightLeg = Character["Right Leg"]
local Head = Character.Head
local Torso = Character.Torso
local asd = 0
local lerpz = false 
local player = game.Players.LocalPlayer
local playergui = player.PlayerGui
local lastgui = nil
fbi = false
ohno = false
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "ColorGuiThing"
local CustomizeGui = Instance.new("Frame")
local Customize = Instance.new("TextLabel")
local Update = Instance.new("TextButton")
local coolstuff = true
local boom = Instance.new("TextButton")
local UHH = Instance.new("TextButton")
local cool = Instance.new("TextButton")
local ClosestColor = Instance.new("TextLabel")
local Line = Instance.new("TextLabel")
local Color = Instance.new("ImageLabel")
local Close = Instance.new("TextButton")
local RedHue = Instance.new("TextLabel")
local GreenHue = Instance.new("TextLabel")
local RedInput = Instance.new("TextBox")
local BlueHue = Instance.new("TextLabel")
local GreenInput = Instance.new("TextBox")
local TransInput = Instance.new("TextBox")
local BlueInput = Instance.new("TextBox")
local Message = Instance.new("TextLabel")
local Message2 = Instance.new("TextLabel")
local TrailTransparency = Instance.new("TextLabel")
local TrailInput = Instance.new("TextBox")
local MusicOption = Instance.new("TextButton")
local ScreenOption = Instance.new("TextButton")
local ScreenOptionTxt = Instance.new("TextLabel")
local MusicOptionTxt = Instance.new("TextLabel")
local Updatetxt = Instance.new("TextLabel")
local upgrade = Instance.new("TextLabel")

function notify(msg,forever)
	local doit = coroutine.wrap(function()
		local gui = Instance.new('ScreenGui',playergui)
		gui.Name = "Notification"
		local frame = Instance.new('Frame',gui)
		frame.Position = UDim2.new(0,0,0,0)
		frame.Size = UDim2.new(1,0,0.2,0)
		frame.BackgroundTransparency = 1
		local txt = Instance.new('TextLabel',frame)
		txt.TextColor3 = Color3.new(0,0,0)
		txt.TextStrokeColor3 = Color3.new(0, 255, 255)
		txt.TextStrokeTransparency = 0
		txt.BackgroundTransparency = 1
		txt.Text = ""
		txt.Size = UDim2.new(1,0,0.3,0)
		txt.Position = UDim2.new(0,0,0.4,0)
		txt.TextScaled = true
		txt.Font = "SciFi"
		txt.TextXAlignment = "Center"
		local tap = Instance.new("Sound")
		tap.Parent = gui
		tap.SoundId = "rbxassetid://147982968"
		tap.TimePosition = 0.1
		local str = msg
		local len = string.len(str)
		for i=1,len do
			txt.Text = string.sub(str,1,i)
			pitche = math.random(20, 40)/10
			tap.PlaybackSpeed = pitche
			tap:Play()
			wait(0.01)
		end
		if forever == false then
			wait(1)
			while txt.TextTransparency < 1 do
				txt.TextTransparency = txt.TextTransparency + 0.1
				txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1
				wait(0.001)
			end
			gui:Destroy()
		end
	end)
	doit()
end
-- Properties

ScreenGui.Parent = playergui

CustomizeGui.Name = "CustomizeGui"
CustomizeGui.Parent = ScreenGui
CustomizeGui.BackgroundColor3 = Color3.new(0, 0, 0)
CustomizeGui.BackgroundTransparency = 0.5
CustomizeGui.BorderColor3 = Color3.new(0, 0, 0)
CustomizeGui.BorderSizePixel = 2
CustomizeGui.Position = UDim2.new(0, 0, 0.5, 0)
CustomizeGui.Size = UDim2.new(0.449999988, 0, 0.449999988, 0)

Customize.Name = "Customize"
Customize.Parent = CustomizeGui
Customize.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
Customize.BackgroundTransparency = 0.75
Customize.BorderSizePixel = 0
Customize.Size = UDim2.new(1, 0, 0.200000003, 0)
Customize.FontSize = Enum.FontSize.Size28
Customize.Font = Enum.Font.SciFi
Customize.Text = "CAR CUSTOMIZATION"
Customize.TextColor3 = Color3.new(0,0,0)
Customize.TextStrokeColor3 = Color3.new(0,1,1)
Customize.TextScaled = true
Customize.TextSize = 25
Customize.TextStrokeTransparency = 0
Customize.TextWrapped = true

ClosestColor.Name = "ClosestColor"
ClosestColor.Parent = CustomizeGui
ClosestColor.BackgroundColor3 = Color3.new(0, 1, 1)
ClosestColor.BackgroundTransparency = 1
ClosestColor.Position = UDim2.new(0, 0, 0.850000024, 0)
ClosestColor.Size = UDim2.new(1, 0, 0.150000006, 0)
ClosestColor.Font = Enum.Font.SciFi
ClosestColor.FontSize = Enum.FontSize.Size32
ClosestColor.Text = "Your color is literally fucking Blue"
ClosestColor.TextColor3 = Color3.new(1, 1, 1)
ClosestColor.TextSize = 30
ClosestColor.TextStrokeTransparency = 0.5

Line.Name = "Line"
Line.Parent = CustomizeGui
Line.BackgroundColor3 = Color3.new(0, 0, 0)
Line.BackgroundTransparency = 0.5
Line.BorderColor3 = Color3.new(0, 0, 0)
Line.BorderSizePixel = 0
Line.Position = UDim2.new(0, 0, 0.200000003, 0)
Line.Size = UDim2.new(1, 0, 0.0299999993, 0)
Line.Font = Enum.Font.SciFi
Line.FontSize = Enum.FontSize.Size14
Line.Text = " "
Line.TextSize = 14

Color.Name = "Color"
Color.Parent = CustomizeGui
Color.BackgroundColor3 = Color3.new(0, 0, 1)
Color.BorderSizePixel = 0
Color.Position = UDim2.new(0.699999988, 0, 0.419999987, 0)
Color.Size = UDim2.new(0.300000012, 0, 0.300000012, 0)
Color.SizeConstraint = Enum.SizeConstraint.RelativeYY

MusicOption.Parent = CustomizeGui
MusicOption.Name = "MusicOption"
MusicOption.BackgroundColor3 = Color3.new(1, 0, 0)
MusicOption.BorderSizePixel = 1
MusicOption.Position = UDim2.new(0.01, 0, -0.12, 0)
MusicOption.Size = UDim2.new(0.05, 0, 0.1, 0)
MusicOption.Text = ""
MusicOption.BackgroundTransparency = 0.5

ScreenOption.Parent = CustomizeGui
ScreenOption.Name = "ScreenOption"
ScreenOption.BackgroundColor3 = Color3.new(1, 0, 0)
ScreenOption.BorderSizePixel = 1
ScreenOption.Position = UDim2.new(0.01, 0, -0.23, 0)
ScreenOption.Size = UDim2.new(0.05, 0, 0.1, 0)
ScreenOption.Text = ""
ScreenOption.BackgroundTransparency = 0.5

Update.Parent = CustomizeGui
Update.Name = "ScreenOption"
Update.BackgroundColor3 = Color3.new(0.5, 0, 1)
Update.BorderSizePixel = 1
Update.Position = UDim2.new(0.01, 0, -0.34, 0)
Update.Size = UDim2.new(0.05, 0, 0.1, 0)
Update.Text = ""
Update.BackgroundTransparency = 0.5

boom.Parent = CustomizeGui
boom.Name = "ScreenOption"
boom.BackgroundColor3 = Color3.new(1,0,0)
boom.BorderSizePixel = 1
boom.Position = UDim2.new(0.01, 0, -0.45, 0)
boom.Size = UDim2.new(0.05, 0, 0.1, 0)
boom.Text = "B"
boom.BackgroundTransparency = 0

cool.Parent = CustomizeGui
cool.Name = "ScreenOption"
cool.BackgroundColor3 = Color3.new(0,1,0)
cool.BorderSizePixel = 1
cool.Position = UDim2.new(0.06, 0, -0.45, 0)
cool.Size = UDim2.new(0.05, 0, 0.1, 0)
cool.Text = ""
cool.BackgroundTransparency = 0.5

UHH.Parent = CustomizeGui
UHH.Name = "ScreenOption"
UHH.BackgroundColor3 = Color3.new(0,0,0)
UHH.BorderSizePixel = 1
UHH.Position = UDim2.new(0.01, 0, -0.55, 0)
UHH.Size = UDim2.new(0.05, 0, 0.1, 0)
UHH.Text = "?"
UHH.BackgroundTransparency = 0.5

upgrade.Name = "ScreenOptionTxt"
upgrade.Parent = CustomizeGui
upgrade.BackgroundColor3 = Color3.new(0, 1, 1)
upgrade.BackgroundTransparency = 1
upgrade.Position = UDim2.new(0.12, 0, -0.45, 0)
upgrade.Size = UDim2.new(1, 0, 0.07, 0)
upgrade.Font = Enum.Font.SciFi
upgrade.FontSize = Enum.FontSize.Size24
upgrade.Text = "Toggle upgrades"
upgrade.TextColor3 = Color3.new(1, 1, 1)
upgrade.TextScaled = true
upgrade.TextSize = 20
upgrade.TextStrokeColor3 = Color3.new(0, 0, 0)
upgrade.TextStrokeTransparency = 0.5
upgrade.TextWrapped = true
upgrade.TextXAlignment = "Left"

Updatetxt.Name = "ScreenOptionTxt"
Updatetxt.Parent = CustomizeGui
Updatetxt.BackgroundColor3 = Color3.new(0, 1, 1)
Updatetxt.BackgroundTransparency = 1
Updatetxt.Position = UDim2.new(0.07, 0, -0.34, 0)
Updatetxt.Size = UDim2.new(1, 0, 0.07, 0)
Updatetxt.Font = Enum.Font.SciFi
Updatetxt.FontSize = Enum.FontSize.Size24
Updatetxt.Text = "Update car colors"
Updatetxt.TextColor3 = Color3.new(1, 1, 1)
Updatetxt.TextScaled = true
Updatetxt.TextSize = 20
Updatetxt.TextStrokeColor3 = Color3.new(0, 0, 0)
Updatetxt.TextStrokeTransparency = 0.5
Updatetxt.TextWrapped = true
Updatetxt.TextXAlignment = "Left"

ScreenOptionTxt.Name = "ScreenOptionTxt"
ScreenOptionTxt.Parent = CustomizeGui
ScreenOptionTxt.BackgroundColor3 = Color3.new(0, 1, 1)
ScreenOptionTxt.BackgroundTransparency = 1
ScreenOptionTxt.Position = UDim2.new(0.07, 0, -0.23, 0)
ScreenOptionTxt.Size = UDim2.new(1, 0, 0.07, 0)
ScreenOptionTxt.Font = Enum.Font.SciFi
ScreenOptionTxt.FontSize = Enum.FontSize.Size24
ScreenOptionTxt.Text = "MCWT parts"
ScreenOptionTxt.TextColor3 = Color3.new(1, 1, 1)
ScreenOptionTxt.TextScaled = true
ScreenOptionTxt.TextSize = 20
ScreenOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0)
ScreenOptionTxt.TextStrokeTransparency = 0.5
ScreenOptionTxt.TextWrapped = true
ScreenOptionTxt.TextXAlignment = "Left"

MusicOptionTxt.Name = "MusicOptionTxt"
MusicOptionTxt.Parent = CustomizeGui
MusicOptionTxt.BackgroundColor3 = Color3.new(0, 1, 1)
MusicOptionTxt.BackgroundTransparency = 1
MusicOptionTxt.Position = UDim2.new(0.07, 0, -0.12, 0)
MusicOptionTxt.Size = UDim2.new(1, 0, 0.07, 0)
MusicOptionTxt.Font = Enum.Font.SciFi
MusicOptionTxt.FontSize = Enum.FontSize.Size24
MusicOptionTxt.Text = "One-Shot mode"
MusicOptionTxt.TextColor3 = Color3.new(1, 1, 1)
MusicOptionTxt.TextScaled = true
MusicOptionTxt.TextSize = 20
MusicOptionTxt.TextStrokeColor3 = Color3.new(0, 0, 0)
MusicOptionTxt.TextStrokeTransparency = 0.5
MusicOptionTxt.TextWrapped = true
MusicOptionTxt.TextXAlignment = "Left"

Close.Name = "Close"
Close.Parent = CustomizeGui
Close.BackgroundColor3 = Color3.new(0, 0, 0)
Close.BackgroundTransparency = 0.5
Close.BorderColor3 = Color3.new(0, 0, 0)
Close.BorderSizePixel = 2
Close.Position = UDim2.new(1.005, 0, 0, 0)
Close.Size = UDim2.new(0.100000001, 0, 0.2, 0)
Close.Font = Enum.Font.SciFi
Close.FontSize = Enum.FontSize.Size14
Close.Text = "X"
Close.TextColor3 = Color3.new(0,0,0)
Close.TextStrokeColor3 = Color3.new(0, 1, 1)
Close.TextScaled = true
Close.TextSize = 14
Close.TextStrokeTransparency = 0
Close.TextWrapped = true

RedHue.Name = "RedHue"
RedHue.Parent = CustomizeGui
RedHue.BackgroundColor3 = Color3.new(0, 0, 0)
RedHue.BackgroundTransparency = 1
RedHue.Position = UDim2.new(0.100000001, 0, 0.400000006, 0)
RedHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
RedHue.Font = Enum.Font.SciFi
RedHue.FontSize = Enum.FontSize.Size24
RedHue.Text = "RED Hue Value: "
RedHue.TextColor3 = Color3.new(0, 0, 0)
RedHue.TextScaled = true
RedHue.TextSize = 20
RedHue.TextStrokeColor3 = Color3.new(0, 1, 1)
RedHue.TextStrokeTransparency = 0
RedHue.TextWrapped = true

GreenHue.Name = "GreenHue"
GreenHue.Parent = CustomizeGui
GreenHue.BackgroundColor3 = Color3.new(0, 0, 0)
GreenHue.BackgroundTransparency = 1
GreenHue.Position = UDim2.new(0.100000001, 0, 0.5, 0)
GreenHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
GreenHue.Font = Enum.Font.SciFi
GreenHue.FontSize = Enum.FontSize.Size24
GreenHue.Text = "GREEN Hue Value:"
GreenHue.TextColor3 = Color3.new(0, 0, 0)
GreenHue.TextScaled = true
GreenHue.TextSize = 20
GreenHue.TextStrokeColor3 = Color3.new(0, 1, 1)
GreenHue.TextStrokeTransparency = 0
GreenHue.TextWrapped = true

RedInput.Name = "RedInput"
RedInput.Parent = CustomizeGui
RedInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
RedInput.BackgroundTransparency = 0.5
RedInput.BorderSizePixel = 0
RedInput.Position = UDim2.new(0.419999987, 0, 0.425000007, 0)
RedInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0)
RedInput.Font = Enum.Font.SciFi
RedInput.FontSize = Enum.FontSize.Size14
RedInput.Text = "0"
RedInput.TextColor3 = Color3.new(0, 0, 0)
RedInput.TextStrokeColor3 = Color3.new(0, 1, 1)
RedInput.TextSize = 14
RedInput.TextStrokeTransparency = 0

BlueHue.Name = "BlueHue"
BlueHue.Parent = CustomizeGui
BlueHue.BackgroundColor3 = Color3.new(0, 0, 0)
BlueHue.BackgroundTransparency = 1
BlueHue.Position = UDim2.new(0.100000001, 0, 0.600000024, 0)
BlueHue.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
BlueHue.Font = Enum.Font.SciFi
BlueHue.FontSize = Enum.FontSize.Size24
BlueHue.Text = "BLUE Hue Value:"
BlueHue.TextColor3 = Color3.new(0, 0, 0)
BlueHue.TextScaled = true
BlueHue.TextSize = 20
BlueHue.TextStrokeColor3 = Color3.new(0, 1, 1)
BlueHue.TextStrokeTransparency = 0
BlueHue.TextWrapped = true

TrailTransparency.Name = "TrailTransparency"
TrailTransparency.Parent = CustomizeGui
TrailTransparency.BackgroundColor3 = Color3.new(0, 0, 0)
TrailTransparency.BackgroundTransparency = 1
TrailTransparency.Position = UDim2.new(0.090000001, 0, 0.700000024, 0)
TrailTransparency.Size = UDim2.new(0.310000012, 0, 0.100000001, 0)
TrailTransparency.Font = Enum.Font.SciFi
TrailTransparency.FontSize = Enum.FontSize.Size24
TrailTransparency.Text = "Car Reflectance:"
TrailTransparency.TextColor3 = Color3.new(0, 0, 0)
TrailTransparency.TextScaled = true
TrailTransparency.TextSize = 20
TrailTransparency.TextStrokeColor3 = Color3.new(0, 1, 1)
TrailTransparency.TextStrokeTransparency = 0
TrailTransparency.TextWrapped = true

GreenInput.Name = "GreenInput"
GreenInput.Parent = CustomizeGui
GreenInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
GreenInput.BackgroundTransparency = 0.5
GreenInput.BorderSizePixel = 0
GreenInput.Position = UDim2.new(0.419999987, 0, 0.524999976, 0)
GreenInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0)
GreenInput.Font = Enum.Font.SciFi
GreenInput.FontSize = Enum.FontSize.Size14
GreenInput.Text = "0"
GreenInput.TextColor3 = Color3.new(0, 0, 0)
GreenInput.TextStrokeColor3 = Color3.new(0, 1, 1)
GreenInput.TextSize = 14
GreenInput.TextStrokeTransparency = 0

TransInput.Name = "TransInput"
TransInput.Parent = CustomizeGui
TransInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
TransInput.BackgroundTransparency = 0.5
TransInput.BorderSizePixel = 0
TransInput.Position = UDim2.new(0.419999987, 0, 0.725000024, 0)
TransInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0)
TransInput.Font = Enum.Font.SciFi
TransInput.FontSize = Enum.FontSize.Size14
TransInput.Text = "0"
TransInput.TextColor3 = Color3.new(0, 0, 0)
TransInput.TextStrokeColor3 = Color3.new(0, 1, 1)
TransInput.TextSize = 14
TransInput.TextStrokeTransparency = 0

BlueInput.Name = "BlueInput"
BlueInput.Parent = CustomizeGui
BlueInput.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
BlueInput.BackgroundTransparency = 0.5
BlueInput.BorderSizePixel = 0
BlueInput.Position = UDim2.new(0.419999987, 0, 0.625, 0)
BlueInput.Size = UDim2.new(0.200000003, 0, 0.075000003, 0)
BlueInput.Font = Enum.Font.SciFi
BlueInput.FontSize = Enum.FontSize.Size14
BlueInput.Text = "255"
BlueInput.TextColor3 = Color3.new(0, 0, 0)
BlueInput.TextStrokeColor3 = Color3.new(0, 1, 1)
BlueInput.TextSize = 14
BlueInput.TextStrokeTransparency = 0

Message.Name = "Message"
Message.Parent = CustomizeGui
Message.BackgroundColor3 = Color3.new(1, 1, 1)
Message.BackgroundTransparency = 1
Message.Position = UDim2.new(0, 0, 0.2500004, 0)
Message.Size = UDim2.new(1, 0, 0.100000006, 0)
Message.Font = Enum.Font.SciFi
Message.FontSize = Enum.FontSize.Size18
Message.Text = "|| Inputs must be values from 0 to 255, Decimals included ||"
Message.TextColor3 = Color3.new(0, 0, 0)
Message.TextStrokeColor3 = Color3.new(0, 1, 1)
Message.TextScaled = true
Message.TextSize = 15
Message.TextStrokeTransparency = 0
Message.TextWrapped = true
function explode()
local ex = Instance.new("Explosion",game.Workspace)
ex.Position = Torso.Position
ex.Visible = true
ex.BlastRadius = 10
ex.BlastPressure = 50000
local sound = Instance.new('Sound', Torso)
sound.SoundId = "rbxassetid://157878578"
sound.Volume = 1
sound:play()
Taxi.Parent = workspace
Torso:BreakJoints()
end


function updatez()
	local rc = tonumber(RedInput.Text)
	local gc = tonumber(GreenInput.Text)
	local bc = tonumber(BlueInput.Text)
	local tcupd = tonumber(TransInput.Text)
	if rc == nil then
		rc = 0
	end
	if gc == nil then
		gc = 0
	end
	if bc == nil then
		bc = 0
	end
	if tcupd == nil then
		tcupd = 0
	end
	local tc = tcupd
	Color.BackgroundColor3 = Color3.fromRGB(rc,gc,bc)
	ClosestColor.Text = "Your color is literally fucking "..tostring(BrickColor.new(Color3.fromRGB(rc,gc,bc)))
	body.Color = Color3.fromRGB(rc,gc,bc)
	spoiler.Color = Color3.fromRGB(rc,gc,bc)
	sideskirts.Color = Color3.fromRGB(rc,gc,bc)
	spoiler.Color = Color3.fromRGB(rc,gc,bc)
	fbi1.Color = Color3.fromRGB(rc,gc,bc)
	grille2.Color = Color3.fromRGB(rc,gc,bc)
	slim.Color = Color3.fromRGB(rc,gc,bc)
	body.Reflectance = tc
    slim.Reflectance = tc
	fbi1.Reflectance = tc
	fbi2.Reflectance = tc
	spoiler.Reflectance = tc
	sideskirts.Reflectance = tc
	grille2.Reflectance = tc
	particle.Color = ColorSequence.new(Color3.fromRGB(rc, gc, bc))
particle.LightEmission = 0.3
particle.Texture = "rbxassetid://241629053"
particle.Enabled = true
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
wait(0.1)
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
wait(1)
particle.Enabled = false
end

RedInput.Changed:connect(function(val)
	if val == "Text" and tonumber(RedInput.Text) then
		RedInput.Text = tostring(tonumber(RedInput.Text))
		if tonumber(RedInput.Text) > 255 then
			RedInput.Text = '255'
		end
	elseif val == "Text" then
		RedInput.Text = ""
	end
end)
GreenInput.Changed:connect(function(val)
	if val == "Text" and tonumber(GreenInput.Text) then
		GreenInput.Text = tostring(tonumber(GreenInput.Text))
		if tonumber(GreenInput.Text) > 255 then
			GreenInput.Text = '255'
		end
	elseif val == "Text" then
		GreenInput.Text = ""
	end
end)
BlueInput.Changed:connect(function(val)
	if val == "Text" and tonumber(BlueInput.Text) then
		BlueInput.Text = tostring(tonumber(BlueInput.Text))
		if tonumber(BlueInput.Text) > 255 then
			BlueInput.Text = '255'
		end
	elseif val == "Text" then
		BlueInput.Text = ""
	end
end)


Close.MouseButton1Click:connect(function()
	if lerpz == false then
		lerpz = true
		if Close.Text ~= "+" then
			CustomizeGui:TweenPosition(UDim2.new(-0.45,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2))
			for i=1,10 do
				Close.TextTransparency = i/10
				Close.TextStrokeTransparency = i/10
				wait(0.01)
			end
			Close.Text = "+"
			for i=1,10 do
				Close.TextTransparency = (10-i+1)/10
				Close.TextStrokeTransparency = (10-i+1)/10
				wait(0.01)
			end
			lerpz = false
		else
			CustomizeGui:TweenPosition(UDim2.new(0,0,0.5,0,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,2))
			for i=1,10 do
				Close.TextTransparency = i/10
				Close.TextStrokeTransparency = i/10
				wait(0.01)
			end
			Close.Text = "X"
			for i=1,10 do
				Close.TextTransparency = (10-i+1)/10
				Close.TextStrokeTransparency = (10-i+1)/10
				wait(0.01)
			end
			lerpz = false
		end
	end
end)

MusicOption.MouseButton1Click:connect(function()
	if IKM == true then
		IKM = false
		a.Material = Enum.Material.SmoothPlastic
a2.Material = Enum.Material.SmoothPlastic
a3.Material = Enum.Material.SmoothPlastic
a4.Material = Enum.Material.SmoothPlastic
		a.Color = Color3.new(0,0,0)
a2.Color = Color3.new(0,0,0)
a3.Color = Color3.new(0,0,0)
a4.Color = Color3.new(0,0,0)
		MusicOption.BackgroundColor3 = Color3.new(1, 0, 0)
	else
		IKM = true
		a.Material = Enum.Material.Neon
a2.Material = Enum.Material.Neon
a3.Material = Enum.Material.Neon
a4.Material = Enum.Material.Neon
		a.Color = Color3.new(1,0,0)
a2.Color = Color3.new(1,0,0)
a3.Color = Color3.new(1,0,0)
a4.Color = Color3.new(1,0,0)
		MusicOption.BackgroundColor3 = Color3.new(0, 1, 0)
	end
end)

ScreenOption.MouseButton1Click:connect(function()
	if MCWT == true then
		MCWT = false
fanbase.Transparency = 1
fan.Transparency = 1
glass2.Transparency = 1
hl2.Transparency = 1
grille2.Transparency = 1
thing.Transparency = 1
spray()
		ScreenOption.BackgroundColor3 = Color3.new(1, 0, 0)
	else
		MCWT = true
fanbase.Transparency = 0
fan.Transparency = 0
glass2.Transparency = 0.5
hl2.Transparency = 0
grille2.Transparency = 0
thing.Transparency = 0
spray()
		ScreenOption.BackgroundColor3 = Color3.new(0, 1, 0)
	end
end)
Update.MouseButton1Click:connect(function()
updatez()
end)
boom.MouseButton1Click:connect(function()
explode()
end)
UHH.MouseButton1Click:connect(function()
if fbi == false then
	fbi = true
body.Transparency = 1
uh.Transparency = 0
UHH.BackgroundColor3 = Color3.new(0, 1, 1)
b.Transparency = 0.5
b2.Transparency = 0.5
fbi1.Transparency = 0
fbi2.Transparency = 0
BlueInput.Text = 0
GreenInput.Text = 0
RedInput.Text = 0
updatez()
else
fbi = false
UHH.BackgroundColor3 = Color3.new(0, 0, 0)
body.Transparency = 0
uh.Transparency = 1
b.Transparency = 1
b2.Transparency = 1
fbi1.Transparency = 1
fbi2.Transparency = 1
BlueInput.Text = 255
GreenInput.Text = 0
RedInput.Text = 0
updatez()
end
end)
cool.MouseButton1Click:connect(function()
	if coolstuff == true then
	sideskirts.Transparency = 1
	spoiler.Transparency = 1
	slim.Transparency = 1
	r1.Transparency = 1
	r2.Transparency = 1
	exhausts.Transparency = 1
	spray()
	coolstuff = false
		cool.BackgroundColor3 = Color3.new(1, 0, 0)
	else
	sideskirts.Transparency = 0
	spoiler.Transparency = 0
	slim.Transparency = 0
	r1.Transparency = 0
	r2.Transparency = 0
	exhausts.Transparency = 0
	spray()
	coolstuff = true
		cool.BackgroundColor3 = Color3.new(0, 1, 0)
	end
end)

local frontspeed = 400
local backspeed = -35
local accel = 1
local speed = 0
local flying = false
local Changelog = [[


   If you see some fucking skid have it, remember to contact xiaxiaokid#7441
   or some other person idk.

   5/26/2018:
   + FBI OPEN UP! New Taxi override system that changes the taxi into a special car! so far we only have a cop car so uh...
   + Honk the horn with H now!

   5/7/2018:
   + Completely remade how the driving works! (this means you can damage players without boosting)

   02/20/2018 (wow that went back a bit):
   + Ripped, or uh stole this changelog from that Minecraft script.

   Keys that do stuff: [F] [E] [L] [H] [SPACE] [SHIFT] 

Have fun B O O S T I N G
]]
function makeSquare(position, size, color, transparency, parent, zindex)
	local label = Instance.new("TextLabel", parent)
	label.Text = ""
	label.BorderSizePixel = 0
	label.BackgroundTransparency = transparency
	label.Position = position
	label.Size = size
	label.BackgroundColor3 = color
	if zindex == nil then label.ZIndex = 1 else label.ZIndex = zindex end
	return label
end

local targetName = game.Players.LocalPlayer.Name
local player = game.Players:FindFirstChild(targetName)
	local playerGui = player:FindFirstChild("PlayerGui")
	if playerGui then
		local invGui = Instance.new("ScreenGui", playerGui)
		local changeLog = Instance.new("TextLabel", invGui)
		changeLog.Text = Changelog
		changeLog.Font = "SciFi"
		changeLog.FontSize = Enum.FontSize.Size12
		changeLog.Size = UDim2.new(0, changeLog.TextBounds.X, 0, changeLog.TextBounds.Y + 2)
		changeLog.BackgroundColor3 = Color3.new(0, 0, 0)
		changeLog.BorderSizePixel = 0
		changeLog.BackgroundTransparency = 0.5
		changeLog.Position = UDim2.new(0.5, -changeLog.Size.X.Offset/2, 0.5, -changeLog.Size.Y.Offset/2)
		changeLog.TextColor3 = Color3.new(0,0,0)
		changeLog.TextStrokeColor3 = Color3.new(0,1,1)
		changeLog.TextStrokeTransparency = 0
		changeLog.TextXAlignment = "Left"
		changeLog.TextYAlignment = "Top"
		
		local coolButton = Instance.new("TextButton", changeLog)
		coolButton.Position = UDim2.new(1, -17, 0, 1)
		coolButton.Size = UDim2.new(0, 16, 0, 12)
		coolButton.Text = "X"
		coolButton.Font = "SciFi"
		coolButton.FontSize = Enum.FontSize.Size12
		coolButton.BorderSizePixel = 0
		coolButton.BackgroundColor3 = Color3.new(1, 0, 0)
		coolButton.BackgroundTransparency = 0.2
		coolButton.TextColor3 = Color3.new(0, 1, 1)
		coolButton.TextStrokeTransparency = 0.5
		coolButton.ZIndex = 2
		
		local line = makeSquare(UDim2.new(0, 0, 1, -14), UDim2.new(1, 0, 0, 14),
			Color3.new(0, 0, 0), 0.75, changeLog, 2)

		local line2 = makeSquare(UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 0, 14),
			Color3.new(1, 1, 1), 0.9, changeLog, 1)
		
		line2.Text = "Change Log"
		line2.TextColor3 = Color3.new(0, 0, 0)
		line2.TextStrokeColor3 = Color3.new(0,1,1)
		line2.TextStrokeTransparency = 0
		line2.Font = "SciFi"
		line2.FontSize = Enum.FontSize.Size12
		
		line.Text = "Made by xiaxiaokid (flying by OsterDog)."
		line.TextColor3 = Color3.new(0, 0, 0)
		line.TextStrokeColor3 = Color3.new(0,1,1)
		line.TextStrokeTransparency = 0
		line.Font = "SciFi"
		line.FontSize = Enum.FontSize.Size14
		line.TextXAlignment = "Left"
		
		coolButton.MouseButton1Click:connect(function()
			changeLog.Visible = false
		end)
	end
	
maincolor = "Toothpaste"
secondcolor = "Really black"

wait(1 / 60)
Effects = { }

local cam = game.Workspace.CurrentCamera
local RootPart = Character.HumanoidRootPart
local RootJoint = RootPart.RootJoint
local equipped = true
local attack = false
local Anim = 'Idle'
local idle = 0
local attacktype = 1
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
local velocity = RootPart.Velocity.y
local sine = 0
local change = 1
local grabbed = false
local cn = CFrame.new
local mr = math.rad
local angles = CFrame.Angles
local ud = UDim2.new

local c3 = Color3.new
MCWT = false
lights = false
local dir = {w = 0, s = 0, a = 0, d = 0} 
Climbanim = false
Runkey=false
firemode = false
inair = false
blocking=false
humHsave=0
humDsave=0
extralock=true
lasthit = nil
IKM = false
musicboi = false
Humanoid.Name = "fwefewgegewgw"
Humanoid.MaxHealth = math.huge
Humanoid.Health = math.huge
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
ff.Visible = false
HMDX = Humanoid.MoveDirection.X/3
HMDZ = Humanoid.MoveDirection.Z/3
local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)),
ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)),
ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)),
ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)),
ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)),
ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)),
ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))}
local s = Instance.new("Sound",Torso)
	s.Name = "TaxiSound"
	s.SoundId = "http://www.roblox.com/asset/?id=147883224"
	s.Pitch = 1
	s.Volume = 1
	s.Looped = true
	s.archivable = false
	s.Parent = Torso
	s:play()
local ono = Instance.new("Sound",Torso)
	ono.Name = "fbi"
	ono.SoundId = "rbxassetid://251931527"
	ono.Pitch = 1
	ono.Volume = 0
	ono.Looped = true
	ono.archivable = false
	ono.Parent = Torso
	ono:play()
local horn = Instance.new("Sound",Torso)
	horn.Name = "b e e p"
	horn.SoundId = "rbxassetid://691472063"
	horn.Pitch = 1
	horn.Volume = 0
	horn.Looped = true
	horn.archivable = false
	horn.Parent = Torso
	horn:play()
local sf = Instance.new("Sound",Torso)
	sf.Name = "FlyingSound"
	sf.SoundId = "http://www.roblox.com/asset/?id=143350696"
	sf.Pitch = 1
	sf.Volume = 1
	sf.Looped = true
	sf.archivable = false
	sf.Parent = Torso
sflon = true
bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
game:GetService("RunService"):BindToRenderStep("ew", 0, function()
	if attack == true then
		bg2.D = 0
		bg2.P = 0
		bg2.maxTorque = Vector3.new(0,0,0)
	end
	if attack == false and flying == false then
		bg2.D = 100
		bg2.P = 9999
		bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
bg2.CFrame  = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
		 
end
end)--]]

New = function(Object, Parent, Name, Data)
	local Object = Instance.new(Object)
	for Index, Value in pairs(Data or {}) do
		Object[Index] = Value
	end
	Object.Parent = Parent
	Object.Name = Name
	return Object
end
function chatthing(text)
coroutine.wrap(function()
if Character:FindFirstChild("TalkingBillBoard")~= nil then
Character:FindFirstChild("TalkingBillBoard"):destroy()
end
local naeeym2 = Instance.new("BillboardGui",Character)
naeeym2.Size = UDim2.new(0,100,0,40)
naeeym2.StudsOffset = Vector3.new(0,3,0) -- o3o lol
naeeym2.Adornee = Character.Head
naeeym2.Name = "TalkingBillBoard"
local tecks2 = Instance.new("TextLabel",naeeym2)
tecks2.BackgroundTransparency = 1
tecks2.BorderSizePixel = 0
tecks2.Text = ""
tecks2.Font = "SciFi"
tecks2.FontSize = "Size32"
tecks2.TextStrokeTransparency = 0
tecks2.TextColor3 = Color3.new(0,0,0)
tecks2.TextStrokeColor3 = Color3.new(0,1,1)
tecks2.Size = UDim2.new(1,0,0.5,0)
local shk = coroutine.wrap(function()
while tecks2 ~= nil do
swait(.05)
tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
end
end)
shk()
for i = 1,string.len(text),1 do
CFuncs["Sound"].Create("rbxassetid://565939471", Character, 4.5, .8)
tecks2.Text = string.sub(text,1,i)
wait(0.01)
end
swait(60)
tecks2.Text = ""
CFuncs['Sound'].Create("rbxassetid://749189256",Character,5,math.random(5, 15) / 10)
for i = 1, 100 do
swait()
tecks2.Text = tecks2.Text.. string.char(math.random(0,126)) -- shit the text got f u c k e d
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
tecks2.Rotation = tecks2.Rotation - .8
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.02
tecks2.TextTransparency = tecks2.TextTransparency + .02
end
naeeym2:Destroy()
end)()
end
function onChatted(msg)
--chatthing(msg)
end
Player.Chatted:connect(onChatted)
Taxi = New("Model",workspace,"Taxi",{})
SwHandle = New("Part",Taxi,"Handle",{BrickColor = BrickColor.new("Really blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
Part = New("Part",Taxi,"Part",{BrickColor = BrickColor.new("Really blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.7,0.7,0.7),})
WheelHB = New("Part",Taxi,"idk",{BrickColor = BrickColor.new("Really blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
fbi1 = New("Part",Taxi,"fbi",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.98000019, -36.8631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),Reflectance = 0.2})
fbi2 = New("Part",Taxi,"fbi",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.78000019, -37.3631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),Reflectance = 0.2})
uh = New("Part",Taxi,"siren base",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Size = Vector3.new(0.49, 0.483, 5.87),CFrame = CFrame.new(-5.18500664, 11.79000019, -37.3831157, 0.001, 0, 0, 0, 0.001, 0, 89, 0, 0.001),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Reflectance = 1})
b = New("Part",Taxi,"light",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Plastic,Size = Vector3.new(0.49, 0.39, 1.99),CFrame = CFrame.new(-7.14500664, 11.79000019, -37.3831157, 0.001, 0, 0, 0, 0.001, 0, 89, 0, 0.001),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,Reflectance = 0.5})
b2 = New("Part",Taxi,"light",{BrickColor = BrickColor.new("Really blue"),Material = Enum.Material.Plastic,Size = Vector3.new(0.49, 0.39, 1.99),CFrame = CFrame.new(-3.24500664, 11.79000019, -37.3831157, 0.001, 0, 0, 0, 0.001, 0, 89, 0, 0.001),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,Reflectance = 0.5})
body = New("Part",Taxi,"car",{BrickColor = BrickColor.new("Really blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
glass = New("Part",Taxi,"glass",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.75000019, -37.3831157, 0.001, 0, 0, 0, 0.001, 0, 89, 0, 0.001),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,Reflectance = 0.5})
inside = New("Part",Taxi,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
grille = New("Part",Taxi,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.2, 0.8, 4.6),CFrame = CFrame.new(-5.19500664, 9.55000019, -29.5631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.17,0.17,0.17),})
plate = New("Part",Taxi,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.2, 0.6, 2),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
rlg = New("Part",Taxi,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.2651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),Transparency = 0.5,Reflectance = 0.5})
rl = New("Part",Taxi,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
hlg = New("Part",Taxi,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.5651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),Transparency = 0.5,Reflectance = 0.5})
hl = New("Part",Taxi,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.7651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
ep = New("Part",Taxi,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
hitbox = New("Part",Taxi,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
hitbox3 = New("Part",Taxi,"hitbox3",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 2.95),CFrame = CFrame.new(-5.16500664, 10.05000019, -27.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
hitbox2 = New("Part",Taxi,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
r1 = New("Part",Taxi,"rocket",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(1,1,4),CFrame = CFrame.new(-8.86500664, 10.15000019, -41.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
r2 = New("Part",Taxi,"rocket2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(1,1,4),CFrame = CFrame.new(-1.36500664, 10.15000019, -41.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
exhaust = New("Part",Taxi,"exhaust",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.337, 0.992, 0.397),CFrame = CFrame.new(-7.16500664, 8.35000019, -44.5631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.3,0.3,0.3),})
a = New("Part",Taxi,"a",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.23, 2.84, 2.88),CFrame = CFrame.new(-8.06500664, 8.05000019, -31.7631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
a2 = New("Part",Taxi,"a2",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.23, 2.84, 2.88),CFrame = CFrame.new(-2.36500664, 8.05000019, -31.7631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
a3 = New("Part",Taxi,"a3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.23, 2.84, 2.88),CFrame = CFrame.new(-2.36500664, 8.05000019, -42.1631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
a4 = New("Part",Taxi,"a4",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.23, 2.84, 2.88),CFrame = CFrame.new(-8.06500664, 8.05000019, -42.1631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
spoiler = New("Part",Taxi,"spoiler",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.5, 0.53, 0.5),CFrame = CFrame.new(-5.16500664, 10.55000019, -44.2851157, 1, 0, 0, 0, 1, 0, -180, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
sideskirts = New("Part",Taxi,"sideskirts",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.95000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
exhausts = New("Part",Taxi,"fake exhausts",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.95000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),Reflectance = 0.5})
slim = New("Part",Taxi,"slim",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.35000019, -44.3651157, 1, 0, 0, 0, 1, 0, -180, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
grille2 = New("Part",Taxi,"grille2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.24500664, 8.85000019, -34.9931157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = body.Color,})
fanbase = New("Part",Taxi,"fanbase",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(2,2,2),CFrame = CFrame.new(-5.24500664, 8.85000019, -27.8531157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
fan = New("Part",Taxi,"fan",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(1,1,2.3),CFrame = CFrame.new(-5.24500664, 8.95000019, -26.8631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),Reflectance = 0.5,})
thing = New("Part",grille2,"thing",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.5, 2.3, 2.3),CFrame = CFrame.new(-5.24500664, 8.85000019, -27.5631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
glass2 = New("Part",grille2,"glass2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Size = Vector3.new(1,1,1),CFrame = CFrame.new(-5.26500664, 9.25000019, -28.1631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,Reflectance = 0.5,})
hl2 = New("Part",grille2,"hl2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Size = Vector3.new(1,1,1),CFrame = CFrame.new(-5.26500664, 9.15000019, -28.2631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Reflectance = 0.5,})

FrontPart = New("Part",Taxi,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -28.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})











local mesh1 = Instance.new("FileMesh")
mesh1.Parent = uh
mesh1.MeshId = "rbxassetid://1840351418" 
local mesh2 = Instance.new("FileMesh")
mesh2.Parent = body
mesh2.MeshId = "rbxassetid://1572519741" 
local mesh3 = Instance.new("FileMesh")
mesh3.Parent = glass
mesh3.MeshId = "rbxassetid://1732089501"
local mesh4 = Instance.new("FileMesh")
mesh4.Parent = inside
mesh4.MeshId = "rbxassetid://1572538756"
local mesh5 = Instance.new("FileMesh", fbi1)
mesh5.MeshId = "rbxassetid://1840169520"
local mesh6 = Instance.new("FileMesh", fbi2)
mesh6.MeshId = "rbxassetid://1840171030"
local mesh7 = Instance.new("FileMesh")
mesh7.Parent = rl
mesh7.MeshId = "rbxassetid://1572536095"
local mesh8 = Instance.new("FileMesh")
mesh8.Parent = hl
mesh8.MeshId = "rbxassetid://1572536095"
local mesh9 = Instance.new("FileMesh")
mesh9.Parent = r1
mesh9.MeshId = "rbxassetid://1439958368" 
mesh9.TextureId = "rbxassetid://1439958385"
local mesh10 = Instance.new("FileMesh")
mesh10.Parent = r2
mesh10.MeshId = "rbxassetid://1439958368" 
mesh10.TextureId = "rbxassetid://1439958385"
local mesh11 = Instance.new("FileMesh")
mesh11.Parent = spoiler
mesh11.MeshId = "rbxassetid://1743290703" 
local mesh11 = Instance.new("FileMesh")
mesh11.Parent = sideskirts
mesh11.MeshId = "rbxassetid://1592401097"
local mesh12 = Instance.new("FileMesh")
mesh12.Parent = slim
mesh12.MeshId = "rbxassetid://1592420924"
local mesh13 = Instance.new("FileMesh")
mesh13.Parent = grille2
mesh13.MeshId = "rbxassetid://1442880208"
local mesh14 = Instance.new("FileMesh")
mesh14.Parent = fanbase
mesh14.MeshId = "rbxassetid://1442917182"
local mesh15 = Instance.new("FileMesh")
mesh15.Parent = fan
mesh15.MeshId = "rbxassetid://1608039482"
local mesh16 = Instance.new("FileMesh")
mesh16.Parent = glass2
mesh16.MeshId = "rbxassetid://1442945759"
local mesh17 = Instance.new("FileMesh")
mesh17.Parent = hl2
mesh17.MeshId = "rbxassetid://1442945759"
local mesh18 = Instance.new("FileMesh")
mesh18.Parent = hlg
mesh18.MeshId = "rbxassetid://1572536095"
local mesh19 = Instance.new("FileMesh")
mesh19.Parent = rlg
mesh19.MeshId = "rbxassetid://1572536095"
local mesh20 = Instance.new("FileMesh")
mesh20.Parent = exhausts
mesh20.MeshId = "rbxassetid://1592409632"
local cap = Instance.new("Decal", a)
cap.Texture = "rbxassetid://187012669"
cap.Face = Enum.NormalId.Left
local cap2 = Instance.new("Decal", a2)
cap2.Texture = "rbxassetid://187012669"
cap2.Face = Enum.NormalId.Right
local cap3 = Instance.new("Decal", a3)
cap3.Texture = "rbxassetid://187012669"
cap3.Face = Enum.NormalId.Right
local cap4 = Instance.new("Decal", a4)
cap4.Texture = "rbxassetid://187012669"
cap4.Face = Enum.NormalId.Left
local att1 = Instance.new("Attachment",r1)
att1.Position = Vector3.new(0,r1.Size.Y/5,r1.Size.Z/5)
local att2 = Instance.new("Attachment",r1)
att2.Position = Vector3.new(0,-r1.Size.Y/5,-r1.Size.Z/5)
local tr1 = Instance.new("Trail",r1)
tr1.Color = ColorSequence.new(ColorsArray)
tr1.Transparency = NumberSequence.new(0,1)
tr1.Lifetime = 2
tr1.Enabled = false
tr1.LightEmission = 1
tr1.Attachment0 = att1
tr1.Attachment1 = att2
local att3 = Instance.new("Attachment",r2)
att3.Position = Vector3.new(0,r2.Size.Y/5,r2.Size.Z/5)
local att4 = Instance.new("Attachment",r2)
att4.Position = Vector3.new(0,-r2.Size.Y/5,-r2.Size.Z/5)
local tr2 = Instance.new("Trail",r2)
tr2.Color = ColorSequence.new(ColorsArray)
tr2.Transparency = NumberSequence.new(0,1)
tr2.Lifetime = 2
tr2.Enabled = false
tr2.LightEmission = 1
tr2.Attachment0 = att3
tr2.Attachment1 = att4

local Light = Instance.new("SpotLight",hl)
Light.Angle = 90;
Light.Brightness = 100;
Light.Face = Enum.NormalId.Left;
Light.Range = 30;
local lt2 = Instance.new('PointLight',rl)
lt2.Range = 8
lt2.Brightness = 100
lt2.Color = Color3.new(1,0,0)
lt2.Enabled = true
lt2.Shadows = true
ep.Transparency = 1
particle = Instance.new("ParticleEmitter",ep)
particle.Enabled = false
particle.EmissionDirection = "Bottom"
particle.Lifetime = NumberRange.new(2.5,2.501)
particle.Rate = 1500
particle.Texture = "rbxassetid://241629053"
particle.Color = ColorSequence.new(Color3.new(0,0,1))
particle.Size = NumberSequence.new(1.4,1.41)
particle2 = Instance.new("ParticleEmitter",exhaust)
particle2.Enabled = true
particle2.EmissionDirection = "Right"
particle2.Lifetime = NumberRange.new(1,1.01)
particle2.Rate = 30
particle2.Texture = "rbxasset://textures/particles/smoke_main.dds"
particle2.Color = ColorSequence.new(Color3.new(155/2,155/2,155/2))
particle2.Size = NumberSequence.new(0.5,1.501)
local all,last = {}
function scan(p)
	for _,v in pairs(p:GetChildren()) do
		if (v:IsA("BasePart")) then
			if (last) then
				local w = Instance.new("Weld")
				w.Part0,w.Part1 = last,v
				w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
				w.Parent = last
			end
			table.insert(all,v)
			last = v
		end
		scan(v)
	end
end
scan(Taxi)


for _,v in pairs(all) do v.Anchored = false v.CanCollide = false  end 
WheelHB.Transparency = 1
 WheelHB.CanCollide = true
hitbox3.CanCollide = false
hitbox3.Transparency = 1
hitbox.CanCollide = true
hitbox.Transparency = 1
hitbox2.CanCollide = true
hitbox2.Transparency = 1
grille2.Transparency = 1
hl2.Transparency = 1
glass2.Transparency = 1
fanbase.Transparency = 1
thing.Transparency = 1
fbi1.Transparency = 1
fbi2.Transparency = 1
uh.Transparency = 1
b.Transparency = 1
b2.Transparency = 1
fan.Transparency = 1
SwHandle.CFrame = Character.Torso.CFrame*CFrame.new(10,24,5)
Taxi.Parent = Character
local Services = {


SoundService = game:GetService("SoundService");
Players = game:GetService("Players");
Debris = game:GetService("Debris");
Workspace = game:GetService("Workspace");
Lighting = game:GetService("Lighting");
--HttpService = game:GetService("HttpService");
InsertService = game:GetService("InsertService");
	
}   

local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
Humanoid.Animator:Destroy()
Character.Animate:Destroy()

local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)



SWW = Instance.new("Weld")
SWW.Name = "SWW"
SWW.Part0 = Torso 
SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
SWW.C1 = cn(0, 0, 0) 
SWW.Part1 = SwHandle
SWW.Parent = Torso 
local fanweld=Instance.new('Weld',fanbase)
fanweld.Part0=fanbase
fanweld.Part1=fan
fanweld.C1=CFrame.new(0,0,0)


RSH, LSH = nil, nil 

RW = Instance.new("Weld") 
LW = Instance.new("Weld")

RH = Torso["Right Hip"]
LH = Torso["Left Hip"]

RSH = Torso["Right Shoulder"] 
LSH = Torso["Left Shoulder"] 

RSH.Parent = nil 
LSH.Parent = nil 

RW.Name = "RW"
RW.Part0 = Torso 
RW.C0 = cn(1.5, 0.5, 0)
RW.C1 = cn(0, 0.5, 0) 
RW.Part1 = RightArm
RW.Parent = Torso 

LW.Name = "LW"
LW.Part0 = Torso 
LW.C0 = cn(-1.5, 0.5, 0)
LW.C1 = cn(0, 0.5, 0) 
LW.Part1 = LeftArm
LW.Parent = Torso 

function spray()
particle.LightEmission = 0.9
particle.Texture = "rbxassetid://280516525"
particle.Color = ColorSequence.new(ColorsArray)
particle.Enabled = true
CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
wait(0.1)
CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
wait(1)
particle.Enabled = false
end

function clerp(a, b, t) 
	local qa = {
		QuaternionFromCFrame(a)
	}
	local qb = {
		QuaternionFromCFrame(b)
	} 
	local ax, ay, az = a.x, a.y, a.z 
	local bx, by, bz = b.x, b.y, b.z
	local _t = 1 - t
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) 
end 

function QuaternionFromCFrame(cf) 
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
	local trace = m00 + m11 + m22 
	if trace > 0 then 
		local s = math.sqrt(1 + trace) 
		local recip = 0.5 / s 
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 
	else 
		local i = 0 
		if m11 > m00 then
			i = 1
		end
		if m22 > (i == 0 and m00 or m11) then 
			i = 2 
		end 
		if i == 0 then 
			local s = math.sqrt(m00 - m11 - m22 + 1) 
			local recip = 0.5 / s 
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip 
		elseif i == 1 then 
			local s = math.sqrt(m11 - m22 - m00 + 1) 
			local recip = 0.5 / s 
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip 
		elseif i == 2 then 
			local s = math.sqrt(m22 - m00 - m11 + 1) 
			local recip = 0.5 / s
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip 
		end 
	end 
end
 
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
	local xs, ys, zs = x + x, y + y, z + z 
	local wx, wy, wz = w * xs, w * ys, w * zs 
	local xx = x * xs 
	local xy = x * ys 
	local xz = x * zs 
	local yy = y * ys 
	local yz = y * zs 
	local zz = z * zs 
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) 
end
 
function QuaternionSlerp(a, b, t) 
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] 
	local startInterp, finishInterp; 
	if cosTheta >= 0.0001 then 
		if (1 - cosTheta) > 0.0001 then 
			local theta = math.acos(cosTheta) 
			local invSinTheta = 1 / math.sin(theta) 
			startInterp = math.sin((1 - t) * theta) * invSinTheta 
			finishInterp = math.sin(t * theta) * invSinTheta  
		else 
			startInterp = 1 - t 
			finishInterp = t 
		end 
	else 
		if (1 + cosTheta) > 0.0001 then 
			local theta = math.acos(-cosTheta) 
			local invSinTheta = 1 / math.sin(theta) 
			startInterp = math.sin((t - 1) * theta) * invSinTheta 
			finishInterp = math.sin(t * theta) * invSinTheta 
		else 
			startInterp = t - 1 
			finishInterp = t 
		end 
	end 
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp 
end

function swait(num)
	if num == 0 or num == nil then
		game:service'RunService'.RenderStepped:wait(0)
	else
		for i = 0, num do
			game:service'RunService'.RenderStepped:wait(0)
		end
	end
end

function Create(className)
	local obj = Instance.new(className)
	return function(properties)
		for i, v in pairs(properties) do
			obj[i] = v
		end
		return obj
	end
end


function RemoveOutlines(part)
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
end
	
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
	local Part = Create("Part"){
		formFactor = FormFactor,
		Parent = Parent,
		Reflectance = Reflectance,
		Transparency = Transparency,
		CanCollide = false,
		Locked = true,
		BrickColor = BrickColor.new(tostring(BColor)),
		Name = Name,
		Size = Size,
		Material = Material,
	}
	RemoveOutlines(Part)
	return Part
end
	
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
	local Msh = Create(Mesh){
		Parent = Part,
		Offset = OffSet,
		Scale = Scale,
	}
	if Mesh == "SpecialMesh" then
		Msh.MeshType = MeshType
		Msh.MeshId = MeshId
	end
	return Msh
end
	
function CreateWeld(Parent, Part0, Part1, C0, C1)
	local Weld = Create("Weld"){
		Parent = Parent,
		Part0 = Part0,
		Part1 = Part1,
		C0 = C0,
		C1 = C1,
	}
	return Weld
end

function rayCast(Position, Direction, Range, Ignore)
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
end 

function CreateSound(id, par, vol, pit) 
	coroutine.resume(coroutine.create(function()
		local sou = Instance.new("Sound", par or workspace)
		sou.Volume = vol
		sou.Pitch = pit or 1
		sou.SoundId = id
		wait() 
		sou:play() 
		game:GetService("Debris"):AddItem(sou, 6)
	end))
end
function CreateSong(id, par, vol, pit) 
	coroutine.resume(coroutine.create(function()
	 sou2 = Instance.new("Sound", par or workspace)
		sou2.Volume = vol
		sou2.Pitch = 1
		sou2.SoundId = id
		wait() 
		sou2:play() 
		sou2.Looped = true		
	end))
end

local function getclosest(obj, distance)
	local last, lastx = distance + 1
	for i, v in pairs(workspace:GetChildren()) do
		if v:IsA'Model' and v ~= Character and v:findFirstChildOfClass('Humanoid') and v:findFirstChild('Torso') and v:findFirstChildOfClass('Humanoid').Health > 0 then
			local t = v.Torso
			local dist = (t.Position - obj.Position).magnitude
			if dist <= distance then
				if dist < last then
					last = dist
					lastx = v
				end
			end
		end
	end
	return lastx
end

function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
	for i, v in pairs(hit:GetChildren()) do 
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
			local find = v:FindFirstChild("Hitz")
			if not find then
				if v.Parent:findFirstChild("Head") then
					local BillG = Create("BillboardGui"){
						Parent = v.Parent.Head,
						Size = UDim2.new(1, 0, 1, 0),
						Adornee = v.Parent.Head,
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
					}
					local TL = Create("TextLabel"){
						Parent = BillG,
						Size = UDim2.new(3, 3, 3, 3),
						BackgroundTransparency = 1,
						Text = tostring(damage).."-",
						TextColor3 = Color1.Color,
						TextStrokeColor3 = Color2.Color,
						TextStrokeTransparency = 0,
						TextXAlignment = Enum.TextXAlignment.Center,
						TextYAlignment = Enum.TextYAlignment.Center,
						FontSize = Enum.FontSize.Size18,
						Font = "ArialBold",
					}
					coroutine.resume(coroutine.create(function()
						wait(1)
						for i = 0, 1, .1 do
							wait(.1)
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
						end
						BillG:Destroy()
					end))
				end
				v.Health = v.Health - damage
				local bool = Create("BoolValue"){
					Parent = v,
					Name = 'Hitz',
				}
				if HSound ~= nil and HPitch ~= nil then
					CreateSound(HSound, hit, 1, HPitch) 
				end
				game:GetService("Debris"):AddItem(bool, cooldown)
			end
		end
	end
end


function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	if Type == 1 or Type == nil then
		table.insert(Effects, {
			prt,
			"Block1",
			delay,
			x3,
			y3,
			z3,
			msh
		})
	elseif Type == 2 then
		table.insert(Effects, {
			prt,
			"Block2",
			delay,
			x3,
			y3,
			z3,
			msh
		})
	elseif Type == 3 then
		table.insert(Effects, {
			prt,
			"Block3",
			delay,
			x3,
			y3,
			z3,
			msh
		})
	end
end

function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {
		prt,
		"Cylinder",
		delay,
		x3,
		y3,
		z3,
		msh
	})
end

function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
	prt.Anchored = true
	prt.CFrame = cframe * CFrame.new(x1, y1, z1)
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {
		prt,
		"Cylinder",
		delay,
		x3,
		y3,
		z3,
		msh
	})
end

function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {
		prt,
		"Cylinder",
		delay,
		x3,
		y3,
		z3,
		msh
	})
end

function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {
		prt,
		"Cylinder",
		delay,
		x3,
		y3,
		z3,
		msh
	})
end

function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {
		prt,
		"Cylinder",
		delay,
		x3,
		y3,
		z3,
		msh
	})
end

function BreakEffect(brickcolor, cframe, x1, y1, z1)
	local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
	prt.Anchored = true
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	local num = math.random(10, 50) / 1000
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {
		prt,
		"Shatter",
		num,
		prt.CFrame,
		math.random() - math.random(),
		0,
		math.random(50, 100) / 100
	})
end


	

	for i = 0, 1, 0.05 do
		swait()
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
		Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
		if Torsovelocity > 2 then
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
		RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
		LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
		elseif Torsovelocity < 1 then
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
		RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
		LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
		end
	end
	attack = false



game:GetService'RunService'.Stepped:connect(function()
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
	velocity = RootPart.Velocity.y
	sine = sine + change
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
	if equipped == true or equipped == false then
		if RootPart.Velocity.y > -1 and hit == nil then 
			Anim = "Jump"
			inair = true

			if attack == false then
	s.Volume = 1.1
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
			end			
		elseif RootPart.Velocity.y < -1 and hit == nil and flying == false then 
			Anim = "Fall"
			inair = true
			if attack == false then
	s.Volume = 1.1				
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
			end
		elseif Torsovelocity < 1 and hit ~= nil then
			Anim = "Idle"
	tr1.Enabled = false
tr2.Enabled = false
			inair = false
		if attack == false then
	s.Volume = 1.1			
				change = 0.8
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)			
			end --]]

		elseif Torsovelocity > 1 and hit ~= nil then
			Anim = "Walk"
inair = false	
			if attack == false and Runkey == true then
	
	s.Volume = 1.1
	tr1.Enabled = true
tr2.Enabled = true
								change = 1
								
								Humanoid.JumpPower = 130
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0),  math.rad(-0) + RootPart.RotVelocity.Y/20), .2)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2)
					RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4)
					LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)	
			end
			if attack == false and Runkey == false then
	
	s.Volume = 1.1
			change = 0.65
tr1.Enabled = false
tr2.Enabled = false
			Humanoid.JumpPower = 50
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
			end

	function onClimbing(speed)
		if attack == false then
		attack = true
		Climbanim= true
		Humanoid.WalkSpeed = 14
while Climbanim == true do
	for i = 0, 0, 0.1 do
        swait()
	
	change = 0.5	
	
	
	
	if RootPart.Velocity.y > .01 then
			
	s.Volume = 1.1
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
	end	
			
			
			
			
	if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5  then
			
	s.Volume = 1.1
					  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
				end				
			
			
		if RootPart.Velocity.y < -1 then
				
	s.Volume = 1.1
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)				end			
			
	end	
	if  Torsovelocity > 1  then
	Climbanim = false
	end
end	
attack = false	
	end
	end
	Humanoid.Climbing:connect(onClimbing)
					
			
			
		end
	end

	
	if #Effects > 0 then
		for e = 1, #Effects do
			if Effects[e] ~= nil then
				local Thing = Effects[e]
				if Thing ~= nil then
					local Part = Thing[1]
					local Mode = Thing[2]
					local Delay = Thing[3]
					local IncX = Thing[4]
					local IncY = Thing[5]
					local IncZ = Thing[6]
					if Thing[1].Transparency <= 1 then
						if Thing[2] == "Block1" then
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
							local Mesh = Thing[1].Mesh
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
						elseif Thing[2] == "Block2" then
							Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
							local Mesh = Thing[7]
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
						elseif Thing[2] == "Block3" then
							Thing[1].CFrame = Thing[1].CFrame  * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0)
							local Mesh = Thing[7]
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]							
						elseif Thing[2] == "Cylinder" then
							local Mesh = Thing[1].Mesh
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
						elseif Thing[2] == "Blood" then
							local Mesh = Thing[7]
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
						elseif Thing[2] == "Elec" then
							local Mesh = Thing[1].Mesh
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
						elseif Thing[2] == "Disappear" then
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
						elseif Thing[2] == "Shatter" then
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
							Thing[6] = Thing[6] + Thing[5]
						end
					else
						Part.Parent = nil
						table.remove(Effects, e)
					end
				end
			end
		end
	end
end)


	Effects = {
Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
	
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	if Type == 1 or Type == nil then
		table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
	else
		if Type == 2 then
			table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
		else
			table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
		end
	end
end
}
, 
Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
end
}
, 
Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
end
}
, 
Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
end
}
, 
Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
end
}
, 
Break = {Create = function(brickcolor, cframe, x1, y1, z1)
	
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
	prt.Anchored = true
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	local num = math.random(10, 50) / 1000
	game:GetService("Debris"):AddItem(prt, 10)
	table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
end
}
}



	RemoveOutlines = function(part)
	
	part.TopSurface = 10
end

	CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
	
	local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
	RemoveOutlines(Part)
	return Part
end

	CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
	
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
	if Mesh == "SpecialMesh" then
		Msh.MeshType = MeshType
		Msh.MeshId = MeshId
	end
	return Msh
end

	CreateWeld = function(Parent, Part0, Part1, C0, C1)
	
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
	return Weld
end




WSHM = {'White',"Pastel light red"}
WSH = WSHM[math.random(1,#WSHM)]


IcePartFunk = function(HPart,aria,Min,Max)
	
IcePart = Instance.new("Part",HPart)
IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
IcePart.CanCollide = false
IuW = Instance.new("Weld")
IuW.Name = "GuW"
IuW.Part0 = HPart 
IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0) 
IuW.Part1 = IcePart
IuW.Parent = HPart 
IcePart.Transparency = .85
IcePart.Material= "Neon"
WSH = WSHM[math.random(1,#WSHM)]
IcePart.BrickColor = BrickColor.new(""..WSH)

RemoveOutlines(IcePart)
game:GetService("Debris"):AddItem(IuW, 4)
game:GetService("Debris"):AddItem(IcePart, 6)


end
--[[
GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
	
IcePart2 = Instance.new("Part",HPart)
IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
IcePart2.CanCollide = false
RemoveOutlines(IcePart2)
IcePart2.Anchored = true



IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))






IcePart2.Transparency = .85
IcePart2.Material= "Neon"

IcePart2.BrickColor = BrickColor.new(""..color)



game:GetService("Debris"):AddItem(IcePart2, 6)


end
--]]
GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
	
IcePart2 = Instance.new("Part",HPart)
IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
IcePart2.CanCollide = false
RemoveOutlines(IcePart2)
IcePart2.Anchored = true
game:GetService("Debris"):AddItem(IcePart2, .4)
IcePart2.Transparency = .3
IcePart2.Material= "Neon"
IcePart2.BrickColor = BrickColor.new(""..color)

IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)))
for i = 0,num do
if num > 1 then
GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)	
end
end











end





SpikeMeshId = 1033714
local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)


local Part = Instance.new("Part", Parent)
Part.Name = Name
Part.BrickColor = BrickColor.new(Color)
Part.Size = Size
Part.Material = Material
Part.Transparency = Transparency
Part.CanCollide = false
RemoveOutlines(Part)

local Mesh = Instance.new("SpecialMesh", Part)
Mesh.MeshType = "Sphere"
Mesh.Scale = Scale

return Mesh and Part

end








	CFuncs = {
Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
	
	local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
	RemoveOutlines(Part)
	return Part
end
}
, 
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
	
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
	if Mesh == "SpecialMesh" then
		Msh.MeshType = MeshType
		Msh.MeshId = MeshId
	end
	return Msh
end
}
, 
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
	
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
	if Mesh == "SpecialMesh" then
		Msh.MeshType = MeshType
		Msh.MeshId = MeshId
	end
	return Msh
end
}
, 
Weld = {Create = function(Parent, Part0, Part1, C0, C1)
	
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
	return Weld
end
}
, 
Sound = {Create = function(id, par, vol, pit)
	
	coroutine.resume(coroutine.create(function()
		
		local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
		wait()
		S:play()
		game:GetService("Debris"):AddItem(S, 6)
	end
))
end
}
, 
ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
	
	local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
	return fp
end
}
}





	Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
	
	if hit.Parent == nil then
		return 
	end
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
	for _,v in pairs(hit.Parent:children()) do
		if v:IsA("Humanoid") then
			h.MaxHealth = 100
			h = v
		end
	end
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
		if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
			return 
		end
		local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
		game:GetService("Debris"):AddItem(c, 0.5)
		if HitSound ~= nil and HitPitch ~= nil then
			CreateSound(HitSound, hit, 1, HitPitch)
		end
		local Damage = math.random(minim, maxim)
		local blocked = false
		local block = hit.Parent:findFirstChild("Block")
		if block ~= nil and block.className == "IntValue" and block.Value > 0 then
			blocked = true
			block.Value = block.Value - 1
			print(block.Value)
		end
		if blocked == false then
			h.Health = h.Health - Damage
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
		else
			h.Health = h.Health - Damage / 2
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
		end
if hit.Parent:FindFirstChild("Head") ~= nil then	
lasthit = hit.Parent.Head
end
		if Type == "Knockdown" then
			local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
			hum.PlatformStand = true
			coroutine.resume(coroutine.create(function(HHumanoid)
		
		swait(.2)
		HHumanoid.PlatformStand = false
	end
), hum)
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
			local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
			local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
			game:GetService("Debris"):AddItem(bodvol, 0.1)
			game:GetService("Debris"):AddItem(rl, 0.1)
		elseif Type == "Normal" then
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
					if knockback > 0 then
						vp.Parent = hit.Parent.Head
					end
					game:GetService("Debris"):AddItem(vp, 0.5)
					elseif Type == "Impale" then

local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))	
Spike.Anchored = true
Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
Spike.Position = hit.Parent.Head.Position 

Services.Debris:AddItem(Spike, 4)




	

CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)	
			hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
			
		
		swait(1)
		hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
				elseif Type == "Up" then
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
							game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
							game:GetService("Debris"):AddItem(bodyVelocity, .1)
				
				
				
	elseif Type == "UltSlice" then			
				
BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0,          0.01,2)	
BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0,          0.01,2)	
BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0,           0.01,2)	
BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)	
BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)	
BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.01,2)	
BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.01,2)					
				
								
		elseif Type == "Slice" then
									local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Head})
									game:GetService("Debris"):AddItem(bp2, 1)
	
if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then	
			for i = 1,10 do
Effects.Break.Create	(BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
			
	
			end	
			end
		
			
			
			
						elseif Type == "Snare" then
									local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Head})
									game:GetService("Debris"):AddItem(bp, 1)
		elseif Type == "Slowness" then
					local	SpeedSave=hit.Parent.Humanoid.WalkSpeed	
							
							for i = 1,25 do
hit.Parent:FindFirstChildOfClass("Humanoid").WalkSpeed = 4		
IcePartFunk(hit.Parent.Torso,.55,0.1,1)
end	
						wait(4)
						hit.Parent:FindFirstChildOfClass("Humanoid").WalkSpeed = SpeedSave	
		elseif Type == "Firedmg" then
			
			for i = 1,math.random(1, 6) do
				if hit.Parent:FindFirstChild("Torso") ~= nil then	
										BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
						BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
						BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
						
			
			
			wait(.1)
			end
			end
			
						elseif Type == "Freeze" then
									local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
									game:GetService("Debris"):AddItem(bp, 4)
for i=1,25 do
	IcePartFunk(hit.Parent.Torso,1,1.5,2)	
	end														
								elseif Type == "Freeze2" then
											local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
											local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
											hit.Parent.Torso.Anchored = true
											coroutine.resume(coroutine.create(function(Part)
		
		swait(1.5)
		Part.Anchored = false
	end
), hit.Parent.Torso)
											game:GetService("Debris"):AddItem(BodPos, 3)
											game:GetService("Debris"):AddItem(BodGy, 3)
										end
											local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
											game:GetService("Debris"):AddItem(debounce, Delay)
											c = Instance.new("ObjectValue")
											c.Name = "creator"
											c.Value = Player
											c.Parent = h
											game:GetService("Debris"):AddItem(c, 0.5)
										end
									end

	ShowDamage = function(Pos, Text, Time, Color)
	
	local Rate = 0.033333333333333
	if not Pos then
		local Pos = Vector3.new(0, 0, 0)
	end
	local Text = Text or ""
	local Time = Time or 2
	if not Color then
		local Color = Color3.new(1, 0, 1)
	end
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
	EffectPart.Anchored = true
	local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
	local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
	game.Debris:AddItem(EffectPart, Time + 0.1)
	EffectPart.Parent = game:GetService("Workspace")
	delay(0, function()
		
		local Frames = Time / Rate
		for Frame = 1, Frames do
			wait(Rate)
			local Percent = Frame / Frames
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
			TextLabel.TextTransparency = Percent
		end
		if EffectPart and EffectPart.Parent then
			EffectPart:Destroy()
		end
	end
)
end

	MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
	
	for _,c in pairs(workspace:children()) do
		local hum = c:findFirstChildOfClass("Humanoid")
		if hum ~= nil then
			local head = c:findFirstChild("Head")
			if head ~= nil then
				local targ = head.Position - Part.Position
				local mag = targ.magnitude
				if mag <= magni and c.Name ~= Player.Name then
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2)
				end
			end
		end
	end
end
	MagniKILL = function(Part, magni, knock, Type)
	
	for _,c in pairs(workspace:children()) do
		local hum = c:findFirstChildOfClass("Humanoid")
		if hum ~= nil then
			local head = c:findFirstChild("Head")
			if head ~= nil then
				local targ = head.Position - Part.Position
				local mag = targ.magnitude
				if mag <= magni and c.Name ~= Player.Name then
					hum.Health = 0
				end
			end
		end
	end
end
	EffectModel = Instance.new("Model", Character)
	EffectModel.Name = "Effects"

	BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
	
	local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
	prt.Anchored = true
	prt.CFrame = cframe
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	if Type == 1 or Type == nil then
		table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
	else
		if Type == 2 then
			table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
	else
		if Type == 3 then
			table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})			
		end
	end
end
end
	CreateSound = function(id, par, vol, pit)
	
	coroutine.resume(coroutine.create(function()
		
		local sou = Instance.new("Sound", par or workspace)
		sou.Volume = vol
		sou.Pitch = pit or 1
		sou.SoundId = id
		swait()
		sou:play()
		game:GetService("Debris"):AddItem(sou, 6)
	end
))
end

	Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
	
	local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
	prt.Anchored = true
	prt.CFrame = cframe
	prt.Material = "Neon"
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
	game:GetService("Debris"):AddItem(prt, 10)
	coroutine.resume(coroutine.create(function(Part, Mesh)
		
		for i = 0, 6, delay do
			swait()
			Part.Transparency = i
			Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
		end
		Part.Parent = nil
	end
), prt, msh)
end

	 shoottraildd = function(mouse, partt, SpreadAmount)
	
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
	local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
	local MainPos2 = mouse + SpreadVectors
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
	local speed = 100
	local num = 1
	coroutine.resume(coroutine.create(function()
		
		repeat
			swait()
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
			local mag = (MainPos - pos).magnitude
			Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
			MainPos = MainPos + MouseLook.lookVector * speed
			num = num - 1
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
			if hit ~= nil then
				num = 0
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
				refpart.Anchored = true
				refpart.CFrame = CFrame.new(pos)
				game:GetService("Debris"):AddItem(refpart, 2)
			end
			do
				if num <= 0 then
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
					refpart.Anchored = true
					refpart.CFrame = CFrame.new(pos)
					if hit ~= nil then
						
					
						
						GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
--						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
--						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
						MagniDamage(refpart, 6, 10, 25, 0, "Slice")
					end
					game:GetService("Debris"):AddItem(refpart, 0)
				end
			end
		until num <= 0
	end
))
end

	shoottraildd2 = function(mouse, partt, SpreadAmount)
	
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
	local MainPos = partt.Position
	local MainPos2 = mouse + SpreadVectors
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
	local speed = 1000
	local num = 1
	coroutine.resume(coroutine.create(function()
		
		repeat
			swait()
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
			local mag = (MainPos - pos).magnitude
			Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
			MainPos = MainPos + MouseLook.lookVector * speed
			num = num - 1
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
			if hit ~= nil then
				num = 0
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
				refpart.Anchored = true
				refpart.CFrame = CFrame.new(pos)
				game:GetService("Debris"):AddItem(refpart, 2)
			end
			do
				if num <= 0 then
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
					refpart.Anchored = true
					refpart.CFrame = CFrame.new(pos)
					if hit ~= nil then
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
						MagniKILL(refpart, 80, 0, "Normal")
					end
					game:GetService("Debris"):AddItem(refpart, 0)
				end
			end
		until num <= 0
	end
))
	end
	
	shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
	
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
	local MainPos = partt.Position
	local MainPos2 = mouse + SpreadVectors
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
	local speed = 200
	local num = 0
	coroutine.resume(coroutine.create(function()
		
		repeat
			swait()
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
			local mag = (MainPos - pos).magnitude
			Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
			MainPos = MainPos + MouseLook.lookVector * speed
			num = num - 1
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
			if hit ~= nil then
				num = 0
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
				refpart.Anchored = true
				refpart.CFrame = CFrame.new(pos)
				BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
				game:GetService("Debris"):AddItem(refpart, 2)
			end
			do
				if num <= 0 then
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
					refpart.Anchored = true
					refpart.CFrame = CFrame.new(pos)
					if hit ~= nil then
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
						BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
						BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
						
							
						MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
						
					end
					game:GetService("Debris"):AddItem(refpart, 0)
				end
			end
		until num <= 0
	end
))
	end
	
	 shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
	
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
	local MainPos = partt.Position
	local MainPos2 = mouse + SpreadVectors
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
	local speed = 150
	local num = 1
	coroutine.resume(coroutine.create(function()
		
		repeat
			swait()
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
			local mag = (MainPos - pos).magnitude
			Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
			MainPos = MainPos + MouseLook.lookVector * speed
			num = num - 1
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
			if hit ~= nil then
				num = 0
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
				refpart.Anchored = true
				refpart.CFrame = CFrame.new(pos)
				game:GetService("Debris"):AddItem(refpart, 2)
			end
			do
				if num <= 0 then
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
					refpart.Anchored = true
					refpart.CFrame = CFrame.new(pos)
					if hit ~= nil then
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
						MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
					end
					game:GetService("Debris"):AddItem(refpart, 0)
				end
			end
		until num <= 0
	end
))
end
	
	
	
	
	


HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
	
Hitpart3 = Instance.new("Part",HPart3)
RemoveOutlines(Hitpart3)
Hitpart3.Size = Vector3.new(1,1,1)
Hitpart3.CanCollide = false
HuW3 = Instance.new("Weld")
HuW3.Name = "GuW"
HuW3.Part0 = HPart3 
HuW3.C0 = cn(Xv, Yv, Zv)
HuW3.C1 = cn(0, 0, 0) 
HuW3.Part1 = Hitpart3
HuW3.Parent = HPart3
Hitpart3.Transparency = 1
game:GetService("Debris"):AddItem(Hitpart3, 20)
end

HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
	
Hitpart2 = Instance.new("Part",HPart2)
RemoveOutlines(Hitpart2)
Hitpart2.Size = Vector3.new(1,1,1)
Hitpart2.CanCollide = false
HuW2 = Instance.new("Weld")
HuW2.Name = "GuW"
HuW2.Part0 = HPart2 
HuW2.C0 = cn(Xv, Yv, Zv)
HuW2.C1 = cn(0, 0, 0) 
HuW2.Part1 = Hitpart2
HuW2.Parent = HPart2
Hitpart2.Transparency = 1
game:GetService("Debris"):AddItem(Hitpart2, 20)
end


HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
	
Hitpart = Instance.new("Part",HPart)
RemoveOutlines(Hitpart)
Hitpart.Size = Vector3.new(1,1,1)
Hitpart.CanCollide = false
HuW = Instance.new("Weld")
HuW.Name = "GuW"
HuW.Part0 = HPart 
HuW.C0 = cn(Xv, Yv, Zv)
HuW.C1 = cn(0, 0, 0) 
HuW.Part1 = Hitpart
HuW.Parent = HPart 
Hitpart.Transparency = 1
game:GetService("Debris"):AddItem(Hitpart2, 20)
MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)

end
HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
	
Hitpart4 = Instance.new("Part",HPart)
RemoveOutlines(Hitpart4)
Hitpart4.Size = Vector3.new(1,1,1)
Hitpart4.CanCollide = false
HuW4 = Instance.new("Weld")
HuW4.Name = "HuW4"
HuW4.Part0 = HPart 
HuW4.C0 = cn(Xv, Yv, Zv)
HuW4.C1 = cn(0, 0, 0) 
HuW4.Part1 = Hitpart4
HuW4.Parent = HPart 
Hitpart4.Transparency = 1
game:GetService("Debris"):AddItem(Hitpart4, 1.5)
MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)

end


HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
	
Hitboxpart = Instance.new("Part",Character)
RemoveOutlines(Hitboxpart)
Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
Hitboxpart.CanCollide = false
Hitboxpart.Transparency = 1
Hitboxpart.Anchored = true
Hitboxpart.CFrame = Pose
game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)

end


wait2 = false


combo = 1




duljump = false
duljump2 = false
jumpatck = false
		mouse.KeyDown:connect(function(k)
if k:byte() == 32 then
notify("A I R T I M E", false)
CFuncs['Sound'].Create("rbxassetid://892076107",Torso,6,1)
end
if k ~= "g" and k ~= "l" and k ~= "h" and k ~= "0" and k ~= "/" and k:byte() ~= 32 and lights == false then
notify("Press [G] to turn on the car", false)
wait(2)
end
if k == "c" then
notify("D R I F T I N G", false)
CFuncs['Sound'].Create("rbxassetid://892075913",Torso,6,1)
end
if k == "h" then
horn.Volume = 6
end

if k == "g" and attack == false and lights == true then
attack = true
lights = false
wait(1)
attack = false
elseif k == "g" and attack == true and lights == false then
notify("Wow, you exist!", false)
attack = true
lights = true
CFuncs['Sound'].Create("rbxassetid://912961304",Torso,6,1)
wait(1)
attack = false
end
if lights == true then
Humanoid.WalkSpeed = 0
end
if lights == false then
Humanoid.WalkSpeed = 0
end
if k == "0" then	
notify("B O O S T I N G", false)
CFuncs['Sound'].Create("rbxassetid://891338458",Torso,6,1)
Runkey = true
tr1.Enabled = true
tr2.Enabled = true
end 
if k == "l" and fbi == true and ohno == false then
ohno = true
wait(1)
elseif k == "l" and ohno == true and fbi == true then
wait(0.5)
ohno = false
end
if k == "e" and flying == false then
	--WOO FLYING (by OsterDog thank you very much)
	flying = true
	CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
	velocityy = Instance.new("BodyVelocity",Character.Torso)
	velocityy.Name = "upvelocity"
	velocityy.MaxForce = Vector3.new(0,math.huge,0)
	velocityy.Velocity = Vector3.new(0,20,0)
	s:Stop()
	sf:Play()
	local flyeffects = Instance.new("ParticleEmitter",thing)
	flyeffects.LightEmission = 1
	flyeffects.Size = NumberSequence.new({
              NumberSequenceKeypoint.new(0, 0, 0),
              NumberSequenceKeypoint.new(0.3, 0.31, 0),
              NumberSequenceKeypoint.new(1, 0, 0)
	            })
flyeffects.Color = ColorSequence.new(ColorsArray)
	flyeffects.Rate = 200
	flyeffects.Rotation = NumberRange.new(-90,90)
	flyeffects.RotSpeed = NumberRange.new(-90,90)
	flyeffects.SpreadAngle = Vector2.new(30,30)
	flyeffects.Enabled = true
flyeffects.Lifetime = NumberRange.new(2,2.1)
flyeffects.EmissionDirection = "Left"
flyeffects.Speed = NumberRange.new(8,8.1)
flyeffects.LockedToPart = false
if flying == true and MCWT == false then
a.Color = Color3.new(0,1,1)
a2.Color = Color3.new(0,1,1)
a3.Color = Color3.new(0,1,1)
a4.Color = Color3.new(0,1,1)
a.Material = Enum.Material.Neon
a2.Material = Enum.Material.Neon
a3.Material = Enum.Material.Neon
a4.Material = Enum.Material.Neon
flyeffects.Enabled = false
end
if flying == true and MCWT == true then
end
thing.BrickColor = BrickColor.new("Toothpaste")
thing.Color = Color3.new(0,1,1)
thing.Material = Enum.Material.Neon
	bodyposition = Instance.new("BodyPosition",Character.Torso)
	bodyposition.Name = "bp"
	bodyposition.Position = Vector3.new(Character.Torso.Position)
	bodyposition.MaxForce = Vector3.new(0,0,0)
	wait(1)
	bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
	velocityy.Velocity = Vector3.new(0,0,0)
elseif k == "e" and flying == true then
	flying = false
thing.BrickColor = BrickColor.new("Really black")
thing.Color = Color3.new(0,0,0)
thing.Material = Enum.Material.SmoothPlastic
	thing.ParticleEmitter:remove()
CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)	
velocityy:Destroy()
bodyposition:Destroy()
sf:Stop()
s:Play()
if flying == false and MCWT == true then
a.Color = Color3.new(0,0,0)
a2.Color = Color3.new(0,0,0)
a3.Color = Color3.new(0,0,0)
a4.Color = Color3.new(0,0,0)
end
if flying == false and MCWT == false then
a.Color = Color3.new(0,0,0)
a2.Color = Color3.new(0,0,0)
a3.Color = Color3.new(0,0,0)
a4.Color = Color3.new(0,0,0)
a.Material = Enum.Material.SmoothPlastic
a2.Material = Enum.Material.SmoothPlastic
a3.Material = Enum.Material.SmoothPlastic
a4.Material = Enum.Material.SmoothPlastic
end
if IKM == true then
a.Material = Enum.Material.Neon
a2.Material = Enum.Material.Neon
a3.Material = Enum.Material.Neon
a4.Material = Enum.Material.Neon
a.Color = Color3.new(1,0,0)
a2.Color = Color3.new(1,0,0)
a3.Color = Color3.new(1,0,0)
a4.Color = Color3.new(1,0,0)
end
end
if MCWT == false then
particle2.Color = ColorSequence.new(Color3.new(155/2,155/2,155/2))
end
if MCWT == true then
particle2.Color = ColorSequence.new(ColorsArray)
end
if k == "w" then
	movingforward = true
	movingbackward = false
end
if k == "s" then
	movingbackward = true
	movingforward = false
end
 if k == "f" and attack == false and flying == false then	
attack = true
	
Humanoid.WalkSpeed = 0	

							CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)

for i = 0, 2, 0.1 do
        swait()

			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
		

		
end	

for i = 0, 4, 0.1 do
        swait()

			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05)
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
		

		
end	
for i = 0, 1 do
for i = 0, 1, 0.1 do
        swait()

			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
		

		
end	
for i = 0, 1, 0.1 do
        swait()

			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
					RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
		

		
end		
end

Humanoid.WalkSpeed = 30	

attack = false




end

















		end)	
		spawn(function()
		while wait() do
			if flying == true then
				local spdd = Character.Torso.Velocity.magnitude
	sf.Pitch = spdd / 65 + 1
			if movingforward == true then
		if speed < frontspeed then speed = speed + accel end
		bodyposition.position = (Character.Torso.Position + Character.Torso.CFrame.lookVector * speed)
	elseif movingbackward == true then
		if speed > backspeed then speed = speed - accel end
		bodyposition.position = (Character.Torso.Position + Character.Torso.CFrame.lookVector * speed)
	elseif movingforward == false or movingbackward == false then
		if speed < 0 then speed = speed + .1 end
		if speed > 0 then speed = speed - .1 end
		bodyposition.position = (Character.Torso.Position + Character.Torso.CFrame.lookVector * speed)
			end
			mouse.TargetFilter = Character
		local PlaneGoTo = (mouse.Hit.p - Character.Torso.Position)
		local PlaneGoToWorld = (Character.Torso.Position + PlaneGoTo)
				Character.HumanoidRootPart.BodyGyro.cframe = CFrame.new(Character.Head.Position, PlaneGoToWorld)
			end
	if flying == false then
	if Runkey == true then
	asdfghjkl = 8
	else
	asdfghjkl = 2
	end
	local spdd = Character.Torso.Velocity.magnitude
	s.Pitch = spdd / 65 + 1
if movingbackward == true and lights == true then
Humanoid.WalkSpeed = Humanoid.WalkSpeed + asdfghjkl
end
if movingforward == true and lights == true then
Humanoid.WalkSpeed = Humanoid.WalkSpeed + asdfghjkl		
end
if Humanoid.WalkSpeed > 300 then
Humanoid.WalkSpeed = 300
asdfghjkl = 0
end
end
		end		
		end)
	
hitwait = false 
function onTouch(part)

local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
local model = part.Parent
local torso = part.Parent:FindFirstChild("Torso")
local head = part.Parent:findFirstChild("Head")
local leftleg = part.Parent:findFirstChild("Left Leg")
local rightleg = part.Parent:findFirstChild("Right Leg")
local leftarm = part.Parent:findFirstChild("Left Arm")
local rightarm = part.Parent:findFirstChild("Right Arm")

	if hitwait == false and attack == false and model.Name == "Effects" == false and Torsovelocity > 75 then
	
hitwait = true			


	

if (humanoid ~=nil) and humanoid.Health >0.01 and  Torsovelocity > 1 then

	 if IKM == true then
Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)	
Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)		
model:BreakJoints() 
CFuncs['Sound'].Create("rbxassetid://283428477",Character,7,1)
local sel = math.random(3)
if sel == 1 then
CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
end
if sel == 2 then
CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
end
if sel == 3 then
CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
end
	
else
Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)	
Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)	
MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown")
CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
local sel = math.random(3)
if sel == 1 then
CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
end
if sel == 2 then
CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
end
if sel == 3 then
CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
end
	end


attack = true
Humanoid.WalkSpeed = Humanoid.WalkSpeed - 10	

						--	local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
						--	game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
if flying == false then							
for i = 0, .5, 0.1 do
        swait()

			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
					RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
					LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
					RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
					LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)		
		
end
		
end	

	

end
attack = false
wait(.08)
hitwait = false	
	end
	
end
FrontPart.Touched:connect(onTouch)



				mouse.KeyUp:connect(function(k)
if k == "0" then	
Runkey = false
end 
if k == "h" then
horn.Volume = 0
end
if k == "w" or k == "s" then
movingbackward = false
movingforward = false
end
			
		

end)
				
humHsave = Humanoid.Health 				
function GainCharge(Humanoid)
if	Humanoid.Health == 0 then		
			equipped = false
			end
if blocking == true then

humDsave = Humanoid.Health
humDsave = humHsave - humDsave
if humDsave >0.01 then

CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)	
BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1,              0.02,2)	
BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,          0.02,2)	
BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)	
BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)	
BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,            0.02,2)	
humDsave = humDsave/3
end
if humDsave <0 then


Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
--[[
BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0,             0.1,2)	
BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0,          0.1,2)	
BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.1,2)	
BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.1,2)	
BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.1,2)	
--]]
humDsave = humDsave*2.5
end

humHsave = humHsave - humDsave




end

end

 Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) 				
				
				
	OnDeath = function()			

		equipped = false
		
			
				
		end		
			
Humanoid.Died:connect(function()OnDeath(Character)explode()scan(Taxi)
for _,v in pairs(all) do v.Anchored = false v.CanCollide = true  end end)

					
				
				print('yesnt is the new no ok cool')
local music=Instance.new('Sound',inside)
music.Name='ok music'
music.Volume=7
music.Pitch=1
music.Looped=true
music.SoundId = "rbxassetid://621111734"
local gui=Instance.new('ScreenGui',Player.PlayerGui)
gui.Name='you make me cri'
local topFrame=Instance.new('Frame',gui)
topFrame.Name='TopFrame'
topFrame.Size=UDim2.new(1,0,1,0)
topFrame.BorderSizePixel=0
topFrame.BackgroundTransparency=1
local choiceFrame=Instance.new('Frame',topFrame)
choiceFrame.Size=UDim2.new(.4,0,.05,0)
choiceFrame.Draggable=true
choiceFrame.BackgroundTransparency=.7
choiceFrame.Position=UDim2.new(.5,0,.775,0)
choiceFrame.BackgroundColor3=Color3.new(0,0,0)
choiceFrame.BorderColor3=Color3.new(0,0,0)
local choiceFrame=Instance.new('Frame',topFrame)
choiceFrame.Size=UDim2.new(.4,0,.05,0)
choiceFrame.Draggable=true
choiceFrame.BackgroundTransparency=.7
choiceFrame.Position=UDim2.new(.3,0,.775,0)
choiceFrame.BackgroundColor3=Color3.new(0,0,0)
choiceFrame.BorderColor3=Color3.new(0,0,0)
local innerFrame=Instance.new('Frame',choiceFrame)
innerFrame.Size=UDim2.new(.5,0,1,0)
innerFrame.Draggable=true
innerFrame.BackgroundTransparency=.9
innerFrame.Position=UDim2.new(0,0,0,0)
innerFrame.BackgroundColor3=Color3.new(0,0,0)
innerFrame.BorderColor3=Color3.new(0,0,0)
local innerFrame2=Instance.new('Frame',choiceFrame)
innerFrame2.Visible=true
innerFrame2.Size=UDim2.new(.5,0,1,0)
innerFrame2.Draggable=false
innerFrame2.BackgroundTransparency=.5
innerFrame2.Position=UDim2.new(0,0,1,1)
innerFrame2.BackgroundColor3=Color3.new(0,0,0)
innerFrame2.BorderColor3=Color3.new(0,0,0)
local imageID=Instance.new('TextBox',innerFrame2)
imageID.Size=UDim2.new(.8,0,.7,0)
imageID.Position=UDim2.new(.1,0,.15,0)
imageID.BackgroundTransparency=.7
imageID.Visible=true
imageID.Text="Image ID (raw image not the decal id)"
imageID.TextScaled=true
imageID.TextStrokeTransparency=0
imageID.TextColor3=Color3.new(0,255,255)
imageID.BackgroundColor3=Color3.new(0,0,0)
imageID.BorderColor3=Color3.new(0,0,0)
imageID.FocusLost:connect(function(ent)
if ent then
cap.Texture="http://www.roblox.com/asset?id="..imageID.Text 
cap2.Texture="http://www.roblox.com/asset?id="..imageID.Text 
cap3.Texture="http://www.roblox.com/asset?id="..imageID.Text 
cap4.Texture="http://www.roblox.com/asset?id="..imageID.Text 
end
end)
local bt1=Instance.new('TextButton',innerFrame)
bt1.Draggable=false
bt1.BackgroundTransparency=.9
bt1.BackgroundColor3=Color3.new(0,0,0)
bt1.Size=UDim2.new(.5,0,1,0)
bt1.Text="Custom"
bt1.TextStrokeTransparency=0
bt1.TextColor3=Color3.new(0,255,255)
bt1.TextScaled=true
bt1.Font="SciFi"
bt1.MouseButton1Click:connect(function()
if imageType=='Default' then
imageType="Custom"
innerFrame2.Visible=true
imageID.Visible=true
end
end)
local bt2=Instance.new('TextButton',innerFrame)
bt2.Draggable=false
bt2.BackgroundTransparency=.9
bt2.BackgroundColor3=Color3.new(0,0,0)
bt2.Size=UDim2.new(.5,0,1,0)
bt2.Position=UDim2.new(.5,0,0,0)
bt2.Text="Default"
bt2.TextStrokeTransparency=0
bt2.TextColor3=Color3.new(0,255,255)
bt2.TextScaled=true
bt2.Font="SciFi"
bt2.MouseButton1Click:connect(function()
if imageType~='Default' then
imageType="Default"
imageID.Visible=false
innerFrame2.Visible=false
cap.Texture="http://www.roblox.com/asset?id=187012669"
cap2.Texture="http://www.roblox.com/asset?id=187012669"
cap3.Texture="http://www.roblox.com/asset?id=187012669"
cap4.Texture="http://www.roblox.com/asset?id=187012669"
end
end)
 
local innerFrame3=Instance.new('Frame',choiceFrame)
innerFrame3.Size=UDim2.new(.5,0,1,0)
innerFrame3.Position=UDim2.new(.5,0,0,0)
innerFrame3.Draggable=true
innerFrame3.BackgroundTransparency=.9
innerFrame3.BackgroundColor3=Color3.new(0,0,0)
innerFrame3.BorderColor3=Color3.new(0,0,0)
local innerFrame4=Instance.new('Frame',choiceFrame)
innerFrame4.Size=UDim2.new(.5,0,1,0)
innerFrame4.Draggable=false
innerFrame4.BackgroundTransparency=.5
innerFrame4.Position=UDim2.new(.5,0,1,1)
innerFrame4.BackgroundColor3=Color3.new(0,0,0)
innerFrame4.BorderColor3=Color3.new(0,0,0)
local musicID=Instance.new('TextBox',innerFrame4)
musicID.Size=UDim2.new(.8,0,.7,0)
musicID.Position=UDim2.new(.1,0,.15,0)
musicID.BackgroundTransparency=.7
musicID.Visible=true
musicID.Text="Music ID (press enter to use the audio)"
musicID.TextScaled=true
musicID.TextStrokeTransparency=0
musicID.TextColor3=Color3.new(0,255,255)
musicID.BackgroundColor3=Color3.new(0,0,0)
musicID.BorderColor3=Color3.new(0,0,0)
musicID.FocusLost:connect(function(ent)
if ent then
music.SoundId="rbxassetid://"..musicID.Text
end
end)
local bt3=Instance.new('TextButton',innerFrame3)
bt3.Draggable=false
bt3.BackgroundTransparency=.9
bt3.BackgroundColor3=Color3.new(0,0,0)
bt3.Size=UDim2.new(.5,0,1,0)
bt3.Text="Play"
bt3.TextStrokeTransparency=0
bt3.TextColor3=Color3.new(0,255,255)
bt3.TextScaled=true
bt3.Font="SciFi"
bt3.MouseButton1Click:connect(function()
if not music.IsPlaying then
musicID.Visible=false
music:play''
musicboi = true
innerFrame4.Visible=false
end
end)
local bt4=Instance.new('TextButton',innerFrame3)
bt4.Draggable=false
bt4.BackgroundTransparency=.9
bt4.BackgroundColor3=Color3.new(0,0,0)
bt4.Size=UDim2.new(.5,0,1,0)
bt4.Position=UDim2.new(.5,0,0,0)
bt4.Text="Stop"
bt4.TextStrokeTransparency=0
bt4.TextColor3=Color3.new(0,255,255)
bt4.TextScaled=true
bt4.Font="SciFi"
bt4.MouseButton1Click:connect(function()
if music.IsPlaying then
music:stop''
musicboi = false
musicID.Visible=true
innerFrame4.Visible=true
end
end)
local hot = Instance.new("Sound", a)
hot.SoundId = "rbxassetid://574293233"
hot.Looped = true
hot.Volume = 0
local hot2 = Instance.new("Sound", a2)
hot2.SoundId = "rbxassetid://574293233"
hot2.Looped = true
hot2.Volume = 0
local hot3 = Instance.new("Sound", a3)
hot3.SoundId = "rbxassetid://574293233"
hot3.Looped = true
hot3.Volume = 0
local hot4 = Instance.new("Sound", a4)
hot4.SoundId = "rbxassetid://574293233"
hot4.Looped = true
hot4.Volume = 0
hot:Play()
hot2:Play()
hot3:Play()
hot4:Play()

while true do
swait()
    music.Parent = inside
if musicboi == true then
	music:resume()
end
if fbi == true then
BlueInput.Text = 0
GreenInput.Text = 0
RedInput.Text = 0
end
if ohno == true and fbi == false then 
ohno = false
end
    music.Volume = 7
    hot.Parent = a
    hot:resume()
    hot2.Parent = a2
    hot2:resume()
    hot3.Parent = a3
    hot3:resume()
    hot4.Parent = a4
    hot4:resume()
	ono.Parent = Torso
	ono:resume()
	horn.Parent = Torso
	horn:resume()
	s.Parent = Torso
if flying == false then
	s:resume()
end
	sf.Parent = Torso
	sf.Volume = 5
if flying == true then
	sf:resume()
end
sad = asd + .1
dsa = asd + 95
if flying == false then
fanweld.C0=CFrame.new(-0.8,0,0)*CFrame.Angles(sad,0,0)
end
if flying == true then
fanweld.C0=CFrame.new(-0.8,0,0)*CFrame.Angles(dsa,0,0)
end
if grille2.Transparency == 0 then
hitbox3.CanCollide = true
else
hitbox3.CanCollide = false
end
if ohno == true then
ono.Volume = 5
b.Material = Enum.Material.Neon
b.Transparency = 0
wait(0.5)
b.Material = Enum.Material.Plastic
b.Transparency = 0.5
b2.Material = Enum.Material.Neon
b2.Transparency = 0
wait(0.5)
b2.Material = Enum.Material.Plastic
b2.Transparency = 0.5
end
if ohno == false then
ono.Volume = 0
if fbi == true then
b.Transparency = 0.5
b2.Transparency = 0.5
else
b.Transparency = 1
b2.Transparency = 1
end
end
hitbox3.Transparency = 1
WheelHB.Transparency = 1
WheelHB.CanCollide = true
hitbox.CanCollide = true
hitbox.Transparency = 1
hitbox2.CanCollide = true
hitbox2.Transparency = 1
Torso.Anchored = false
Head.Anchored = false
LeftArm.Anchored = false
RightArm.Anchored = false
LeftLeg.Anchored = false
RightLeg.Anchored = false
if coolstuff == false then
tr1.Enabled = false
tr2.Enabled = false
end
if IKM == true then
hot.Volume = 0.5
hot2.Volume = 0.5
hot3.Volume = 0.5
hot4.Volume = 0.5
end
if IKM == false then
hot.Volume = 0
hot2.Volume = 0
hot3.Volume = 0
hot4.Volume = 0
end
if lights == true then
hl.Color = Color3.new(1,1,1)
hl2.Color = Color3.new(1,1,1)
rl.Color = Color3.new(1,0,0)
Light.Enabled = true
lt2.Enabled = true
s.Volume = 1.1
particle2.Enabled = true
end

if lights == false then
hl.Color = Color3.new(0.5,0.5,0.5)
hl2.Color = Color3.new(0.5,0.5,0.5)
rl.Color = Color3.new(0.5,0,0)
Light.Enabled = false
lt2.Enabled = false
Humanoid.WalkSpeed = 0
s.Volume = 0.1
particle2.Enabled = false
attack = true
end
if Runkey == true and flying == true then
accel = 5
end
if Runkey == false and flying == true then
accel = 1
end
sf.Volume = 5
music.Volume = 8
if music.SoundId == "rbxassetid://582067021" and musicboi == true then
wait(5)
scan(Taxi)
Taxi.Parent = workspace
game:GetService("TeleportService"):TeleportToSpawnByName(192083765, "SpawnLocation", Player)	
end
if Character:FindFirstChildOfClass("ForceField") == nil then
ff = Instance.new("ForceField",Character)
ff.Visible = false
end
end
INFO