View difference between Paste ID: 0fdGCxPs and jkgEhPUk
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5
6
--[[ Created By Draconix ]]--
7
8
maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
9
secondcolor = "Really black"
10
11
wait(1 / 60)
12
Effects = { }
13
local Player = game.Players.localPlayer
14
local Character = Player.Character
15
local Humanoid = Character.Humanoid
16
local mouse = Player:GetMouse()
17
local LeftArm = Character["Left Arm"]
18
local RightArm = Character["Right Arm"]
19
local LeftLeg = Character["Left Leg"]
20
local RightLeg = Character["Right Leg"]
21
local Head = Character.Head
22
local Torso = Character.Torso
23
local cam = game.Workspace.CurrentCamera
24
local RootPart = Character.HumanoidRootPart
25
local RootJoint = RootPart.RootJoint
26
local equipped = true
27
local attack = false
28
local Anim = 'Idle'
29
local idle = 0
30
local attacktype = 1
31
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
32
local velocity = RootPart.Velocity.y
33
local sine = 0
34
local change = 1
35
local grabbed = false
36
local cn = CFrame.new
37
local mr = math.rad
38
local angles = CFrame.Angles
39
local ud = UDim2.new
40
local c3 = Color3.new
41
local dir = {w = 0, s = 0, a = 0, d = 0} 
42
Climbanim = false
43
Runkey=false
44
firemode = false
45
inair = false
46
blocking=false
47
humHsave=0
48
humDsave=0
49
extralock=true
50
lasthit = nil
51
IKM = false
52
HMDX = Humanoid.MoveDirection.X/3
53
HMDZ = Humanoid.MoveDirection.Z/3
54
local s = Instance.new("Sound",Character)
55
	s.Name = "BumperCarSound"
56
	s.SoundId = "http://www.roblox.com/asset/?id=532147820"
57
	s.Pitch = .7
58
	s.Volume = .5
59
	s.Looped = true
60
	s.archivable = false
61
	s.Parent = Character
62
	s:play()
63
	
64
sflon = true
65
bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
66
game:GetService("RunService"):BindToRenderStep("ew", 0, function()
67
	if attack == true then
68
		bg2.D = 0
69
		bg2.P = 0
70
		bg2.maxTorque = Vector3.new(0,0,0)
71
	end
72
	if attack == false then
73
		bg2.D = 100
74
		bg2.P = 9999
75
		bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
76
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)
77
		 
78
end
79
end)--]]
80
81
82
New = function(Object, Parent, Name, Data)
83
	local Object = Instance.new(Object)
84
	for Index, Value in pairs(Data or {}) do
85
		Object[Index] = Value
86
	end
87
	Object.Parent = Parent
88
	Object.Name = Name
89
	return Object
90
end
91
	
92
BumperCar = New("Model",Workspace,"BumperCar",{})
93
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.299999952),CFrame = CFrame.new(-5.95999956, 9.90000057, -36.2131157, 1, 7.64274186e-15, 0, 7.64274186e-15, -1, -8.74227766e-08, 0, 8.74227766e-08, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
94
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.5, 0.100000001, 0.100000001),CFrame = CFrame.new(-4.02177143, 11.8595181, -40.6349945, -0.466506243, -0.129409313, 0.87500006, -0.741025686, -0.482962549, -0.466506183, 0.482962519, -0.866025567, 0.129409432),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
95
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999994, 3.9000001, 3.9000001),CFrame = CFrame.new(-5.16500664, 8.05000019, -38.9131165, -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.388235, 0.372549, 0.384314),})
96
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.79999995, 0.800000072, 0.800000072),CFrame = CFrame.new(-5.81500626, 8.5, -34.7631149, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
97
SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(4, 0.899999976, 4),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.0666667, 0.0666667, 0.0666667),})
98
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Olive"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999845, 0.699999988, 0.699999988),CFrame = CFrame.new(-5.81500578, 8.5, -33.4031143, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.756863, 0.745098, 0.258824),})
99
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999976, 4, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -34.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),})
100
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.599999964, 1.49999952),CFrame = CFrame.new(-6.46000004, 8.85000038, -39.5131149, 4.37113883e-08, -1, -1.19248771e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, 1, 4.37113883e-08, 8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
101
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 1, 0.299999952),CFrame = CFrame.new(-4.35999966, 9.60000038, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
102
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 0.999999523),CFrame = CFrame.new(-3.50999951, 8.60000038, -36.8631134, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
103
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.89999986, 1.99999988, 1.99999988),CFrame = CFrame.new(-5.15999985, 8.5, -34.9000015, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
104
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.49999976, 0.0999999866, 0.109999947),CFrame = CFrame.new(-5.15999985, 9.95000076, -36.4081154, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
105
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 0.999999523),CFrame = CFrame.new(-6.80999947, 8.60000038, -36.8631134, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
106
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1.60000002, 0.999999523),CFrame = CFrame.new(-6.80999947, 8.90000057, -38.5631142, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
107
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.49999988, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.52999973, 10.6799994, -40.1199951, -0.258819044, 3.08638382e-09, 0.965925813, -0.933012724, -0.258818835, -0.25, 0.249999776, -0.965925872, 0.0669872463),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
108
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999976, 4, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -38.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),})
109
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.69999993, 0.100000024, 0.0999999493),CFrame = CFrame.new(-5.15999985, 10.0500002, -36.4131165, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
110
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1.60000002, 0.999999523),CFrame = CFrame.new(-3.50999975, 8.90000057, -38.5631142, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
111
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1, 3.89999962),CFrame = CFrame.new(-3.50999975, 8.60000038, -37.1131134, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
112
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.399999857, 0.300000012, 0.300000012),CFrame = CFrame.new(-4.67235041, 10.1668425, -39.9824944, -0.258819044, 3.08638382e-09, 0.965925813, -0.933012724, -0.258818835, -0.25, 0.249999776, -0.965925872, 0.0669872463),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
113
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.5, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-3.11038089, 12.7026892, -41.3446198, -0.774519205, -0.353553116, 0.524519026, -0.408493787, -0.353553116, -0.841506362, 0.482962519, -0.866025567, 0.129409432),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
114
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.999999881, 2.0999999, 2.0999999),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.1499977, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
115
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.299999565),CFrame = CFrame.new(-5.85999918, 9.45000076, -39.5131149, 4.37113883e-08, 1, 1.19248771e-08, 7.10542736e-15, -1.19248762e-08, 0.99999994, 1, -4.37113883e-08, 6.06292123e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
116
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999857, 2.20000005, 2.20000005),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.0999985, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
117
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.199999571),CFrame = CFrame.new(-4.46000051, 9.70000076, -39.5131149, -1.31134158e-07, 1, 1.19248691e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, -1, -1.31134158e-07, -8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
118
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.300000012, 2.9000001),CFrame = CFrame.new(-5.15999985, 9.55000019, -34.9131165, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
119
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999999046, 1, 0.299999952),CFrame = CFrame.new(-5.96000004, 9.60000038, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
120
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 1.49999952),CFrame = CFrame.new(-3.8599999, 8.85000038, -39.5131149, -1.31134158e-07, 1, 1.19248691e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, -1, -1.31134158e-07, -8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
121
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.199999571),CFrame = CFrame.new(-5.85999918, 9.70000076, -39.5131149, 4.37113883e-08, -1, -1.19248771e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, 1, 4.37113883e-08, 8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
122
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.5999999, 1.20000005, 1.20000005),CFrame = CFrame.new(-4.51500654, 8.19999981, -34.8631134, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
123
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.34999967, 0.0999999866, 2.69999981),CFrame = CFrame.new(-5.1150074, 8.15000057, -37.7131157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
124
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.5999999, 1.20000005, 1.20000005),CFrame = CFrame.new(-5.81500626, 8.19999981, -34.8631134, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
125
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.300000012, 0.200000092),CFrame = CFrame.new(-5.15999985, 9.55000019, -33.3631172, -1, 0, -2.62268316e-07, 0, 1, 0, 2.62268316e-07, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
126
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.299999952),CFrame = CFrame.new(-4.35999966, 9.90000057, -36.2131157, 1, 7.64274186e-15, 0, 7.64274186e-15, -1, -8.74227766e-08, 0, 8.74227766e-08, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
127
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Medium blue"),Material = Enum.Material.SmoothPlastic,Transparency = 0.5,Transparency = 0.5,Size = Vector3.new(1.49999988, 0.980000019, 0.279999942),CFrame = CFrame.new(-5.16000032, 9.59000015, -36.2031174, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.431373, 0.6, 0.792157),})
128
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.8499999, 0.099999994, 4),CFrame = CFrame.new(-5.16500711, 8.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.388235, 0.372549, 0.384314),})
129
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.299999565),CFrame = CFrame.new(-4.45999908, 9.45000076, -39.5131149, -1.31134158e-07, -1, -1.19248771e-08, 7.10542736e-15, -1.19248762e-08, 0.99999994, -1, 1.31134158e-07, -5.0204151e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
130
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.69999993, 0.100000024, 0.299999952),CFrame = CFrame.new(-5.15999985, 10.0500002, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
131
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 1.4000001, 0.200000092),CFrame = CFrame.new(-5.15999985, 8.69999981, -33.3631172, 1, 8.74227766e-08, 2.62268316e-07, 8.74227766e-08, -1, 2.29282247e-14, 2.62268316e-07, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
132
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 2),CFrame = CFrame.new(-4.15999985, 8.60000038, -35.3631172, -1.19248806e-08, 1, -1.04250613e-15, 1, 1.19248806e-08, 8.74227766e-08, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
133
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999994, 3.9000001, 3.9000001),CFrame = CFrame.new(-5.16500664, 8.05000019, -35.0131149, -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.388235, 0.372549, 0.384314),})
134
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 3.89999962),CFrame = CFrame.new(-6.80999994, 8.60000038, -37.1131134, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
135
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.0999999493),CFrame = CFrame.new(-4.35999966, 9.90000057, -36.4131165, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
136
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.5, 1, 1.19999993),CFrame = CFrame.new(-5.15999985, 8.60000038, -35.7631149, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
137
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 2),CFrame = CFrame.new(-6.15999985, 8.60000038, -35.3631172, 9.9347659e-08, -1, 8.68524799e-15, -1, -9.9347659e-08, -8.74227766e-08, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
138
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3, 1, 1.99000001),CFrame = CFrame.new(-5.15999985, 8.60000038, -35.3581161, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
139
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.5, 0.600000024, 1.59999955),CFrame = CFrame.new(-5.15999985, 8.90000057, -39.3631134, -1, 0, -8.74227766e-08, 8.74227766e-08, 1.19248806e-08, -1, 1.04250613e-15, -1, -1.19248806e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
140
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.799999833, 2.29999995, 2.29999995),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.0499992, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
141
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Olive"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999845, 0.699999988, 0.699999988),CFrame = CFrame.new(-4.51500607, 8.5, -33.4031143, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.756863, 0.745098, 0.258824),})
142
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999857, 2.39999986, 2.39999986),CFrame = CFrame.new(-5.15999985, 8.69999981, -39.5, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
143
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.99999988, 1.60000002, 1.60000002),CFrame = CFrame.new(-5.15999985, 9.05000019, -39.9999962, -2.08616257e-07, 0, 1, -1, 1.19248806e-08, -2.08616257e-07, -1.19248806e-08, -1, -2.48772391e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
144
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.699999809, 2.0999999, 2.0999999),CFrame = CFrame.new(-5.15999985, 8.55000019, -35.5999985, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
145
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.71999979, 2.19999981, 2.19999981),CFrame = CFrame.new(-5.15999985, 8.60000038, -36.0099983, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
146
Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.79999995, 0.800000072, 0.800000072),CFrame = CFrame.new(-4.51500654, 8.5, -34.7631149, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
147
Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.0999999493),CFrame = CFrame.new(-5.95999956, 9.90000057, -36.4131165, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
148
149
150
151
152
FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -34.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,})
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
local all,last = {}
170
function scan(p)
171
	for _,v in pairs(p:GetChildren()) do
172
		if (v:IsA("BasePart")) then
173
			if (last) then
174
				local w = Instance.new("Weld")
175
				w.Part0,w.Part1 = last,v
176
				w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
177
				w.Parent = last
178
			end
179
			table.insert(all,v)
180
			last = v
181
		end
182
		scan(v)
183
	end
184
end
185
scan(BumperCar)
186
187
188
for _,v in pairs(all) do v.Anchored = false v.CanCollide = false  end 
189
BumperCar.Parent = Character
190
191
192
local Services = {
193
194
195
SoundService = game:GetService("SoundService");
196
Players = game:GetService("Players");
197
Debris = game:GetService("Debris");
198
Workspace = game:GetService("Workspace");
199
Lighting = game:GetService("Lighting");
200
HttpService = game:GetService("HttpService");
201
InsertService = game:GetService("InsertService");
202
	
203
}   
204
205
local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
206
Humanoid.Animator:Destroy()
207
Character.Animate:Destroy()
208
209
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
210
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
211
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
212
213
214
215
SWW = Instance.new("Weld")
216
SWW.Name = "SWW"
217
SWW.Part0 = Torso 
218
SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
219
SWW.C1 = cn(0, 0, 0) 
220
SWW.Part1 = SwHandle
221
SWW.Parent = Torso 
222
223
RSH, LSH = nil, nil 
224
225
RW = Instance.new("Weld") 
226
LW = Instance.new("Weld")
227
228
RH = Torso["Right Hip"]
229
LH = Torso["Left Hip"]
230
231
RSH = Torso["Right Shoulder"] 
232
LSH = Torso["Left Shoulder"] 
233
234
RSH.Parent = nil 
235
LSH.Parent = nil 
236
237
RW.Name = "RW"
238
RW.Part0 = Torso 
239
RW.C0 = cn(1.5, 0.5, 0)
240
RW.C1 = cn(0, 0.5, 0) 
241
RW.Part1 = RightArm
242
RW.Parent = Torso 
243
244
LW.Name = "LW"
245
LW.Part0 = Torso 
246
LW.C0 = cn(-1.5, 0.5, 0)
247
LW.C1 = cn(0, 0.5, 0) 
248
LW.Part1 = LeftArm
249
LW.Parent = Torso 
250
251
function clerp(a, b, t) 
252
	local qa = {
253
		QuaternionFromCFrame(a)
254
	}
255
	local qb = {
256
		QuaternionFromCFrame(b)
257
	} 
258
	local ax, ay, az = a.x, a.y, a.z 
259
	local bx, by, bz = b.x, b.y, b.z
260
	local _t = 1 - t
261
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) 
262
end 
263
264
function QuaternionFromCFrame(cf) 
265
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
266
	local trace = m00 + m11 + m22 
267
	if trace > 0 then 
268
		local s = math.sqrt(1 + trace) 
269
		local recip = 0.5 / s 
270
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 
271
	else 
272
		local i = 0 
273
		if m11 > m00 then
274
			i = 1
275
		end
276
		if m22 > (i == 0 and m00 or m11) then 
277
			i = 2 
278
		end 
279
		if i == 0 then 
280
			local s = math.sqrt(m00 - m11 - m22 + 1) 
281
			local recip = 0.5 / s 
282
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip 
283
		elseif i == 1 then 
284
			local s = math.sqrt(m11 - m22 - m00 + 1) 
285
			local recip = 0.5 / s 
286
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip 
287
		elseif i == 2 then 
288
			local s = math.sqrt(m22 - m00 - m11 + 1) 
289
			local recip = 0.5 / s
290
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip 
291
		end 
292
	end 
293
end
294
 
295
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
296
	local xs, ys, zs = x + x, y + y, z + z 
297
	local wx, wy, wz = w * xs, w * ys, w * zs 
298
	local xx = x * xs 
299
	local xy = x * ys 
300
	local xz = x * zs 
301
	local yy = y * ys 
302
	local yz = y * zs 
303
	local zz = z * zs 
304
	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)) 
305
end
306
 
307
function QuaternionSlerp(a, b, t) 
308
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] 
309
	local startInterp, finishInterp; 
310
	if cosTheta >= 0.0001 then 
311
		if (1 - cosTheta) > 0.0001 then 
312
			local theta = math.acos(cosTheta) 
313
			local invSinTheta = 1 / math.sin(theta) 
314
			startInterp = math.sin((1 - t) * theta) * invSinTheta 
315
			finishInterp = math.sin(t * theta) * invSinTheta  
316
		else 
317
			startInterp = 1 - t 
318
			finishInterp = t 
319
		end 
320
	else 
321
		if (1 + cosTheta) > 0.0001 then 
322
			local theta = math.acos(-cosTheta) 
323
			local invSinTheta = 1 / math.sin(theta) 
324
			startInterp = math.sin((t - 1) * theta) * invSinTheta 
325
			finishInterp = math.sin(t * theta) * invSinTheta 
326
		else 
327
			startInterp = t - 1 
328
			finishInterp = t 
329
		end 
330
	end 
331
	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 
332
end
333
334
function swait(num)
335
	if num == 0 or num == nil then
336
		game:service'RunService'.RenderStepped:wait(0)
337
	else
338
		for i = 0, num do
339
			game:service'RunService'.RenderStepped:wait(0)
340
		end
341
	end
342
end
343
344
local RbxUtility = LoadLibrary("RbxUtility")
345
local Create = RbxUtility.Create
346
347
function RemoveOutlines(part)
348
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
349
end
350
	
351
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
352
	local Part = Create("Part"){
353
		formFactor = FormFactor,
354
		Parent = Parent,
355
		Reflectance = Reflectance,
356
		Transparency = Transparency,
357
		CanCollide = false,
358
		Locked = true,
359
		BrickColor = BrickColor.new(tostring(BColor)),
360
		Name = Name,
361
		Size = Size,
362
		Material = Material,
363
	}
364
	RemoveOutlines(Part)
365
	return Part
366
end
367
	
368
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
369
	local Msh = Create(Mesh){
370
		Parent = Part,
371
		Offset = OffSet,
372
		Scale = Scale,
373
	}
374
	if Mesh == "SpecialMesh" then
375
		Msh.MeshType = MeshType
376
		Msh.MeshId = MeshId
377
	end
378
	return Msh
379
end
380
	
381
function CreateWeld(Parent, Part0, Part1, C0, C1)
382
	local Weld = Create("Weld"){
383
		Parent = Parent,
384
		Part0 = Part0,
385
		Part1 = Part1,
386
		C0 = C0,
387
		C1 = C1,
388
	}
389
	return Weld
390
end
391
392
function rayCast(Position, Direction, Range, Ignore)
393
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
394
end 
395
396
function CreateSound(id, par, vol, pit) 
397
	coroutine.resume(coroutine.create(function()
398
		local sou = Instance.new("Sound", par or workspace)
399
		sou.Volume = vol
400
		sou.Pitch = pit or 1
401
		sou.SoundId = id
402
		wait() 
403
		sou:play() 
404
		game:GetService("Debris"):AddItem(sou, 6)
405
	end))
406
end
407
function CreateSong(id, par, vol, pit) 
408
	coroutine.resume(coroutine.create(function()
409
	 sou2 = Instance.new("Sound", par or workspace)
410
		sou2.Volume = vol
411
		sou2.Pitch = 1
412
		sou2.SoundId = id
413
		wait() 
414
		sou2:play() 
415
		sou2.Looped = true		
416
	end))
417
end
418
419
local function getclosest(obj, distance)
420
	local last, lastx = distance + 1
421
	for i, v in pairs(workspace:GetChildren()) do
422
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
423
			local t = v.Torso
424
			local dist = (t.Position - obj.Position).magnitude
425
			if dist <= distance then
426
				if dist < last then
427
					last = dist
428
					lastx = v
429
				end
430
			end
431
		end
432
	end
433
	return lastx
434
end
435
436
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
437
	for i, v in pairs(hit:GetChildren()) do 
438
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
439
			local find = v:FindFirstChild("Hitz")
440
			if not find then
441
				if v.Parent:findFirstChild("Head") then
442
					local BillG = Create("BillboardGui"){
443
						Parent = v.Parent.Head,
444
						Size = UDim2.new(1, 0, 1, 0),
445
						Adornee = v.Parent.Head,
446
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
447
					}
448
					local TL = Create("TextLabel"){
449
						Parent = BillG,
450
						Size = UDim2.new(3, 3, 3, 3),
451
						BackgroundTransparency = 1,
452
						Text = tostring(damage).."-",
453
						TextColor3 = Color1.Color,
454
						TextStrokeColor3 = Color2.Color,
455
						TextStrokeTransparency = 0,
456
						TextXAlignment = Enum.TextXAlignment.Center,
457
						TextYAlignment = Enum.TextYAlignment.Center,
458
						FontSize = Enum.FontSize.Size18,
459
						Font = "ArialBold",
460
					}
461
					coroutine.resume(coroutine.create(function()
462
						wait(1)
463
						for i = 0, 1, .1 do
464
							wait(.1)
465
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
466
						end
467
						BillG:Destroy()
468
					end))
469
				end
470
				v.Health = v.Health - damage
471
				local bool = Create("BoolValue"){
472
					Parent = v,
473
					Name = 'Hitz',
474
				}
475
				if HSound ~= nil and HPitch ~= nil then
476
					CreateSound(HSound, hit, 1, HPitch) 
477
				end
478
				game:GetService("Debris"):AddItem(bool, cooldown)
479
			end
480
		end
481
	end
482
end
483
484
485
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
486
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
487
	prt.Anchored = true
488
	prt.CFrame = cframe
489
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
490
	game:GetService("Debris"):AddItem(prt, 10)
491
	if Type == 1 or Type == nil then
492
		table.insert(Effects, {
493
			prt,
494
			"Block1",
495
			delay,
496
			x3,
497
			y3,
498
			z3,
499
			msh
500
		})
501
	elseif Type == 2 then
502
		table.insert(Effects, {
503
			prt,
504
			"Block2",
505
			delay,
506
			x3,
507
			y3,
508
			z3,
509
			msh
510
		})
511
	elseif Type == 3 then
512
		table.insert(Effects, {
513
			prt,
514
			"Block3",
515
			delay,
516
			x3,
517
			y3,
518
			z3,
519
			msh
520
		})
521
	end
522
end
523
524
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
525
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
526
	prt.Anchored = true
527
	prt.CFrame = cframe
528
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
529
	game:GetService("Debris"):AddItem(prt, 10)
530
	table.insert(Effects, {
531
		prt,
532
		"Cylinder",
533
		delay,
534
		x3,
535
		y3,
536
		z3,
537
		msh
538
	})
539
end
540
541
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
542
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
543
	prt.Anchored = true
544
	prt.CFrame = cframe * CFrame.new(x1, y1, z1)
545
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
546
	game:GetService("Debris"):AddItem(prt, 10)
547
	table.insert(Effects, {
548
		prt,
549
		"Cylinder",
550
		delay,
551
		x3,
552
		y3,
553
		z3,
554
		msh
555
	})
556
end
557
558
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
559
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
560
	prt.Anchored = true
561
	prt.CFrame = cframe
562
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
563
	game:GetService("Debris"):AddItem(prt, 10)
564
	table.insert(Effects, {
565
		prt,
566
		"Cylinder",
567
		delay,
568
		x3,
569
		y3,
570
		z3,
571
		msh
572
	})
573
end
574
575
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
576
	local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
577
	prt.Anchored = true
578
	prt.CFrame = cframe
579
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
580
	game:GetService("Debris"):AddItem(prt, 10)
581
	table.insert(Effects, {
582
		prt,
583
		"Cylinder",
584
		delay,
585
		x3,
586
		y3,
587
		z3,
588
		msh
589
	})
590
end
591
592
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
593
	local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
594
	prt.Anchored = true
595
	prt.CFrame = cframe
596
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
597
	game:GetService("Debris"):AddItem(prt, 10)
598
	table.insert(Effects, {
599
		prt,
600
		"Cylinder",
601
		delay,
602
		x3,
603
		y3,
604
		z3,
605
		msh
606
	})
607
end
608
609
function BreakEffect(brickcolor, cframe, x1, y1, z1)
610
	local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
611
	prt.Anchored = true
612
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
613
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
614
	local num = math.random(10, 50) / 1000
615
	game:GetService("Debris"):AddItem(prt, 10)
616
	table.insert(Effects, {
617
		prt,
618
		"Shatter",
619
		num,
620
		prt.CFrame,
621
		math.random() - math.random(),
622
		0,
623
		math.random(50, 100) / 100
624
	})
625
end
626
627
628
	
629
630
	for i = 0, 1, 0.05 do
631
		swait()
632
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
633
		Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
634
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
635
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
636
		if Torsovelocity > 2 then
637
		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)
638
		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)
639
		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)
640
		elseif Torsovelocity < 1 then
641
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
642
		RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
643
		LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
644
		end
645
	end
646
	attack = false
647
648
649
650
game:GetService'RunService'.Stepped:connect(function()
651
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
652
	velocity = RootPart.Velocity.y
653
	sine = sine + change
654
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
655
	if equipped == true or equipped == false then
656
		if RootPart.Velocity.y > -1 and hit == nil then 
657
			Anim = "Jump"
658
			inair = true
659
			if attack == false then
660
					s.Pitch = 1
661
	s.Volume = 1
662
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
663
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
664
					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)
665
					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)
666
					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)
667
					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)
668
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
669
			end
670
			
671
		elseif RootPart.Velocity.y < -1 and hit == nil then 
672
			Anim = "Fall"
673
			inair = true
674
			if attack == false then
675
	s.Pitch = .7
676
	s.Volume = .5				
677
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
678
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
679
					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)
680
					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)
681
					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)
682
					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)
683
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
684
			end
685
		elseif Torsovelocity < 1 and hit ~= nil then
686
			Anim = "Idle"
687
	
688
			inair = false
689
		if attack == false then
690
	s.Pitch = .7
691
	s.Volume = .5			
692
				change = 0.8
693
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
694
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
695
					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)
696
					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)
697
					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)
698
					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)
699
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)			
700
			end --]]
701
702
		elseif Torsovelocity > 1 and hit ~= nil then
703
			Anim = "Walk"
704
inair = false	
705
706
			if attack == false and Runkey == true then
707
	s.Pitch = 1
708
	s.Volume = .9
709
	
710
								change = 1
711
								Humanoid.WalkSpeed = 30
712
								Humanoid.JumpPower = 55
713
			  		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)
714
					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)
715
					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)
716
					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)
717
					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)
718
					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)
719
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)	
720
			end
721
			if attack == false and Runkey == false then
722
	s.Pitch = .8
723
	s.Volume = .6
724
			change = 0.65
725
			Humanoid.WalkSpeed = 13 --* math.cos(sine / 2)
726
			Humanoid.JumpPower = 50
727
			  		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)
728
					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)
729
					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)
730
					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)
731
					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)
732
					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)
733
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
734
			end
735
			
736
			
737
			
738
			
739
	function onClimbing(speed)
740
		if attack == false then
741
		attack = true
742
		Climbanim= true
743
		Humanoid.WalkSpeed = 14
744
while Climbanim == true do
745
	for i = 0, 0, 0.1 do
746
        swait()
747
	
748
	change = 0.5	
749
	
750
	
751
	
752
	if RootPart.Velocity.y > .01 then
753
			s.Pitch = .9
754
	s.Volume = .5
755
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
756
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
757
					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)
758
					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)
759
					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)
760
					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)
761
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
762
	end	
763
			
764
			
765
			
766
			
767
	if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5  then
768
			s.Pitch = .7
769
	s.Volume = .5
770
					  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
771
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
772
					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)
773
					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)
774
					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)
775
					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)
776
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)	
777
				end				
778
			
779
			
780
		if RootPart.Velocity.y < -1 then
781
				s.Pitch = .9
782
	s.Volume = .5
783
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
784
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
785
					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)
786
					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)
787
					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)
788
					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)
789
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)				end			
790
			
791
	end	
792
	if  Torsovelocity > 1  then
793
	Climbanim = false
794
	end
795
end	
796
attack = false	
797
	end
798
	end
799
	Humanoid.Climbing:connect(onClimbing)
800
					
801
			
802
			
803
		end
804
	end
805
806
	
807
	if #Effects > 0 then
808
		for e = 1, #Effects do
809
			if Effects[e] ~= nil then
810
				local Thing = Effects[e]
811
				if Thing ~= nil then
812
					local Part = Thing[1]
813
					local Mode = Thing[2]
814
					local Delay = Thing[3]
815
					local IncX = Thing[4]
816
					local IncY = Thing[5]
817
					local IncZ = Thing[6]
818
					if Thing[1].Transparency <= 1 then
819
						if Thing[2] == "Block1" then
820
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
821
							local Mesh = Thing[1].Mesh
822
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
823
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
824
						elseif Thing[2] == "Block2" then
825
							Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
826
							local Mesh = Thing[7]
827
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
828
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
829
						elseif Thing[2] == "Block3" then
830
							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)
831
							local Mesh = Thing[7]
832
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
833
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]							
834
						elseif Thing[2] == "Cylinder" then
835
							local Mesh = Thing[1].Mesh
836
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
837
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
838
						elseif Thing[2] == "Blood" then
839
							local Mesh = Thing[7]
840
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
841
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
842
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
843
						elseif Thing[2] == "Elec" then
844
							local Mesh = Thing[1].Mesh
845
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
846
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
847
						elseif Thing[2] == "Disappear" then
848
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
849
						elseif Thing[2] == "Shatter" then
850
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
851
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
852
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
853
							Thing[6] = Thing[6] + Thing[5]
854
						end
855
					else
856
						Part.Parent = nil
857
						table.remove(Effects, e)
858
					end
859
				end
860
			end
861
		end
862
	end
863
end)
864
865
866
	Effects = {
867
Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
868
	
869
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
870
	prt.Anchored = true
871
	prt.CFrame = cframe
872
	local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
873
	game:GetService("Debris"):AddItem(prt, 10)
874
	if Type == 1 or Type == nil then
875
		table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
876
	else
877
		if Type == 2 then
878
			table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
879
		else
880
			table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
881
		end
882
	end
883
end
884
}
885
, 
886
Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
887
	
888
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
889
	prt.Anchored = true
890
	prt.CFrame = cframe
891
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
892
	game:GetService("Debris"):AddItem(prt, 10)
893
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
894
end
895
}
896
, 
897
Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
898
	
899
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
900
	prt.Anchored = true
901
	prt.CFrame = cframe
902
	local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
903
	game:GetService("Debris"):AddItem(prt, 10)
904
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
905
end
906
}
907
, 
908
Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
909
	
910
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
911
	prt.Anchored = true
912
	prt.CFrame = cframe
913
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
914
	game:GetService("Debris"):AddItem(prt, 10)
915
	table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
916
end
917
}
918
, 
919
Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
920
	
921
	local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
922
	prt.Anchored = true
923
	prt.CFrame = cframe
924
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
925
	game:GetService("Debris"):AddItem(prt, 10)
926
	table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
927
end
928
}
929
, 
930
Break = {Create = function(brickcolor, cframe, x1, y1, z1)
931
	
932
	local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
933
	prt.Anchored = true
934
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
935
	local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
936
	local num = math.random(10, 50) / 1000
937
	game:GetService("Debris"):AddItem(prt, 10)
938
	table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
939
end
940
}
941
}
942
943
944
945
	RemoveOutlines = function(part)
946
	
947
	part.TopSurface = 10
948
end
949
950
	CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
951
	
952
	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})
953
	RemoveOutlines(Part)
954
	return Part
955
end
956
957
	CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
958
	
959
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
960
	if Mesh == "SpecialMesh" then
961
		Msh.MeshType = MeshType
962
		Msh.MeshId = MeshId
963
	end
964
	return Msh
965
end
966
967
	CreateWeld = function(Parent, Part0, Part1, C0, C1)
968
	
969
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
970
	return Weld
971
end
972
973
974
975
976
WSHM = {'White',"Pastel light red"}
977
WSH = WSHM[math.random(1,#WSHM)]
978
979
980
IcePartFunk = function(HPart,aria,Min,Max)
981
	
982
IcePart = Instance.new("Part",HPart)
983
IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
984
IcePart.CanCollide = false
985
IuW = Instance.new("Weld")
986
IuW.Name = "GuW"
987
IuW.Part0 = HPart 
988
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))
989
IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0) 
990
IuW.Part1 = IcePart
991
IuW.Parent = HPart 
992
IcePart.Transparency = .85
993
IcePart.Material= "Neon"
994
WSH = WSHM[math.random(1,#WSHM)]
995
IcePart.BrickColor = BrickColor.new(""..WSH)
996
997
RemoveOutlines(IcePart)
998
game:GetService("Debris"):AddItem(IuW, 4)
999
game:GetService("Debris"):AddItem(IcePart, 6)
1000
1001
1002
end
1003
--[[
1004
GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
1005
	
1006
IcePart2 = Instance.new("Part",HPart)
1007
IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
1008
IcePart2.CanCollide = false
1009
RemoveOutlines(IcePart2)
1010
IcePart2.Anchored = true
1011
1012
1013
1014
IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
1015
1016
1017
1018
1019
1020
1021
IcePart2.Transparency = .85
1022
IcePart2.Material= "Neon"
1023
1024
IcePart2.BrickColor = BrickColor.new(""..color)
1025
1026
1027
1028
game:GetService("Debris"):AddItem(IcePart2, 6)
1029
1030
1031
end
1032
--]]
1033
GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
1034
	
1035
IcePart2 = Instance.new("Part",HPart)
1036
IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
1037
IcePart2.CanCollide = false
1038
RemoveOutlines(IcePart2)
1039
IcePart2.Anchored = true
1040
game:GetService("Debris"):AddItem(IcePart2, .4)
1041
IcePart2.Transparency = .3
1042
IcePart2.Material= "Neon"
1043
IcePart2.BrickColor = BrickColor.new(""..color)
1044
1045
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)))
1046
for i = 0,num do
1047
if num > 1 then
1048
GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)	
1049
end
1050
end
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
end
1063
1064
1065
1066
1067
1068
SpikeMeshId = 1033714
1069
local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
1070
1071
1072
local Part = Instance.new("Part", Parent)
1073
Part.Name = Name
1074
Part.BrickColor = BrickColor.new(Color)
1075
Part.Size = Size
1076
Part.Material = Material
1077
Part.Transparency = Transparency
1078
Part.CanCollide = false
1079
RemoveOutlines(Part)
1080
1081
local Mesh = Instance.new("SpecialMesh", Part)
1082
Mesh.MeshType = "Sphere"
1083
Mesh.Scale = Scale
1084
1085
return Mesh and Part
1086
1087
end
1088
1089
1090
1091
1092
1093
1094
1095
1096
	CFuncs = {
1097
Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1098
	
1099
	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})
1100
	RemoveOutlines(Part)
1101
	return Part
1102
end
1103
}
1104
, 
1105
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1106
	
1107
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
1108
	if Mesh == "SpecialMesh" then
1109
		Msh.MeshType = MeshType
1110
		Msh.MeshId = MeshId
1111
	end
1112
	return Msh
1113
end
1114
}
1115
, 
1116
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1117
	
1118
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
1119
	if Mesh == "SpecialMesh" then
1120
		Msh.MeshType = MeshType
1121
		Msh.MeshId = MeshId
1122
	end
1123
	return Msh
1124
end
1125
}
1126
, 
1127
Weld = {Create = function(Parent, Part0, Part1, C0, C1)
1128
	
1129
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
1130
	return Weld
1131
end
1132
}
1133
, 
1134
Sound = {Create = function(id, par, vol, pit)
1135
	
1136
	coroutine.resume(coroutine.create(function()
1137
		
1138
		local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
1139
		wait()
1140
		S:play()
1141
		game:GetService("Debris"):AddItem(S, 6)
1142
	end
1143
))
1144
end
1145
}
1146
, 
1147
ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
1148
	
1149
	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})
1150
	return fp
1151
end
1152
}
1153
}
1154
1155
1156
1157
1158
1159
	Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1160
	
1161
	if hit.Parent == nil then
1162
		return 
1163
	end
1164
	local h = hit.Parent:FindFirstChild("Humanoid")
1165
	for _,v in pairs(hit.Parent:children()) do
1166
		if v:IsA("Humanoid") then
1167
			h = v
1168
		end
1169
	end
1170
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
1171
		if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1172
			return 
1173
		end
1174
		local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
1175
		game:GetService("Debris"):AddItem(c, 0.5)
1176
		if HitSound ~= nil and HitPitch ~= nil then
1177
			CreateSound(HitSound, hit, 1, HitPitch)
1178
		end
1179
		local Damage = math.random(minim, maxim)
1180
		local blocked = false
1181
		local block = hit.Parent:findFirstChild("Block")
1182
		if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1183
			blocked = true
1184
			block.Value = block.Value - 1
1185
			print(block.Value)
1186
		end
1187
		if blocked == false then
1188
			h.Health = h.Health - Damage
1189
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1190
		else
1191
			h.Health = h.Health - Damage / 2
1192
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1193
		end
1194
if hit.Parent:FindFirstChild("Torso") ~= nil then	
1195
lasthit = hit.Parent.Torso
1196
end
1197
		if Type == "Knockdown" then
1198
			local hum = hit.Parent.Humanoid
1199
			hum.PlatformStand = true
1200
			coroutine.resume(coroutine.create(function(HHumanoid)
1201
		
1202
		swait(.2)
1203
		HHumanoid.PlatformStand = false
1204
	end
1205
), hum)
1206
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1207
			local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
1208
			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})
1209
			game:GetService("Debris"):AddItem(bodvol, 0.1)
1210
			game:GetService("Debris"):AddItem(rl, 0.1)
1211
		elseif Type == "Normal" then
1212
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
1213
					if knockback > 0 then
1214
						vp.Parent = hit.Parent.Torso
1215
					end
1216
					game:GetService("Debris"):AddItem(vp, 0.5)
1217
					elseif Type == "Impale" then
1218
1219
local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))	
1220
Spike.Anchored = true
1221
Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
1222
Spike.Position = hit.Parent.Torso.Position 
1223
1224
Services.Debris:AddItem(Spike, 4)
1225
1226
1227
1228
1229
	
1230
1231
CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)	
1232
			hit.Parent.Humanoid.PlatformStand = true
1233
			
1234
		
1235
		swait(1)
1236
		hit.Parent.Humanoid.PlatformStand = false
1237
				elseif Type == "Up" then
1238
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
1239
							game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
1240
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
1241
							game:GetService("Debris"):AddItem(bodyVelocity, .1)
1242
				
1243
				
1244
				
1245
	elseif Type == "UltSlice" then			
1246
				
1247
BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0,          0.01,2)	
1248
BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0,          0.01,2)	
1249
BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0,           0.01,2)	
1250
BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)	
1251
BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.01,2)	
1252
BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.01,2)	
1253
BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.01,2)					
1254
				
1255
								
1256
		elseif Type == "Slice" then
1257
									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.Torso})
1258
									game:GetService("Debris"):AddItem(bp2, 1)
1259
	
1260
if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then	
1261
			for i = 1,10 do
1262
Effects.Break.Create	(BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
1263
			
1264
	
1265
			end	
1266
			end
1267
		
1268
			
1269
			
1270
			
1271
						elseif Type == "Snare" then
1272
									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})
1273
									game:GetService("Debris"):AddItem(bp, 1)
1274
		elseif Type == "Slowness" then
1275
					local	SpeedSave=hit.Parent.Humanoid.WalkSpeed	
1276
							
1277
							for i = 1,25 do
1278
hit.Parent.Humanoid.WalkSpeed = 4		
1279
IcePartFunk(hit.Parent.Torso,.55,0.1,1)
1280
end	
1281
						wait(4)
1282
						hit.Parent.Humanoid.WalkSpeed = SpeedSave	
1283
		elseif Type == "Firedmg" then
1284
			
1285
			for i = 1,math.random(1, 6) do
1286
				if hit.Parent:FindFirstChild("Torso") ~= nil then	
1287
										BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
1288
						BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
1289
						BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
1290
						
1291
			
1292
			
1293
			wait(.1)
1294
			end
1295
			end
1296
			
1297
						elseif Type == "Freeze" then
1298
									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})
1299
									game:GetService("Debris"):AddItem(bp, 4)
1300
for i=1,25 do
1301
	IcePartFunk(hit.Parent.Torso,1,1.5,2)	
1302
	end														
1303
								elseif Type == "Freeze2" then
1304
											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})
1305
											local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
1306
											hit.Parent.Torso.Anchored = true
1307
											coroutine.resume(coroutine.create(function(Part)
1308
		
1309
		swait(1.5)
1310
		Part.Anchored = false
1311
	end
1312
), hit.Parent.Torso)
1313
											game:GetService("Debris"):AddItem(BodPos, 3)
1314
											game:GetService("Debris"):AddItem(BodGy, 3)
1315
										end
1316
											local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
1317
											game:GetService("Debris"):AddItem(debounce, Delay)
1318
											c = Instance.new("ObjectValue")
1319
											c.Name = "creator"
1320
											c.Value = Player
1321
											c.Parent = h
1322
											game:GetService("Debris"):AddItem(c, 0.5)
1323
										end
1324
									end
1325
1326
	ShowDamage = function(Pos, Text, Time, Color)
1327
	
1328
	local Rate = 0.033333333333333
1329
	if not Pos then
1330
		local Pos = Vector3.new(0, 0, 0)
1331
	end
1332
	local Text = Text or ""
1333
	local Time = Time or 2
1334
	if not Color then
1335
		local Color = Color3.new(1, 0, 1)
1336
	end
1337
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1338
	EffectPart.Anchored = true
1339
	local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
1340
	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})
1341
	game.Debris:AddItem(EffectPart, Time + 0.1)
1342
	EffectPart.Parent = game:GetService("Workspace")
1343
	delay(0, function()
1344
		
1345
		local Frames = Time / Rate
1346
		for Frame = 1, Frames do
1347
			wait(Rate)
1348
			local Percent = Frame / Frames
1349
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1350
			TextLabel.TextTransparency = Percent
1351
		end
1352
		if EffectPart and EffectPart.Parent then
1353
			EffectPart:Destroy()
1354
		end
1355
	end
1356
)
1357
end
1358
1359
	MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
1360
	
1361
	for _,c in pairs(workspace:children()) do
1362
		local hum = c:findFirstChild("Humanoid")
1363
		if hum ~= nil then
1364
			local head = c:findFirstChild("Head")
1365
			if head ~= nil then
1366
				local targ = head.Position - Part.Position
1367
				local mag = targ.magnitude
1368
				if mag <= magni and c.Name ~= Player.Name then
1369
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
1370
				end
1371
			end
1372
		end
1373
	end
1374
end
1375
	MagniKILL = function(Part, magni, knock, Type)
1376
	
1377
	for _,c in pairs(workspace:children()) do
1378
		local hum = c:findFirstChild("Humanoid")
1379
		if hum ~= nil then
1380
			local head = c:findFirstChild("Head")
1381
			if head ~= nil then
1382
				local targ = head.Position - Part.Position
1383
				local mag = targ.magnitude
1384
				if mag <= magni and c.Name ~= Player.Name then
1385
					hum.Health = 0
1386
				end
1387
			end
1388
		end
1389
	end
1390
end
1391
	EffectModel = Instance.new("Model", Character)
1392
	EffectModel.Name = "Effects"
1393
1394
	BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
1395
	
1396
	local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1397
	prt.Anchored = true
1398
	prt.CFrame = cframe
1399
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1400
	game:GetService("Debris"):AddItem(prt, 10)
1401
	if Type == 1 or Type == nil then
1402
		table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
1403
	else
1404
		if Type == 2 then
1405
			table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
1406
	else
1407
		if Type == 3 then
1408
			table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})			
1409
		end
1410
	end
1411
end
1412
end
1413
	CreateSound = function(id, par, vol, pit)
1414
	
1415
	coroutine.resume(coroutine.create(function()
1416
		
1417
		local sou = Instance.new("Sound", par or workspace)
1418
		sou.Volume = vol
1419
		sou.Pitch = pit or 1
1420
		sou.SoundId = id
1421
		swait()
1422
		sou:play()
1423
		game:GetService("Debris"):AddItem(sou, 6)
1424
	end
1425
))
1426
end
1427
1428
	Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1429
	
1430
	local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1431
	prt.Anchored = true
1432
	prt.CFrame = cframe
1433
	prt.Material = "Neon"
1434
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1435
	game:GetService("Debris"):AddItem(prt, 10)
1436
	coroutine.resume(coroutine.create(function(Part, Mesh)
1437
		
1438
		for i = 0, 6, delay do
1439
			swait()
1440
			Part.Transparency = i
1441
			Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
1442
		end
1443
		Part.Parent = nil
1444
	end
1445
), prt, msh)
1446
end
1447
1448
	 shoottraildd = function(mouse, partt, SpreadAmount)
1449
	
1450
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
1451
	local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
1452
	local MainPos2 = mouse + SpreadVectors
1453
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1454
	local speed = 100
1455
	local num = 1
1456
	coroutine.resume(coroutine.create(function()
1457
		
1458
		repeat
1459
			swait()
1460
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1461
			local mag = (MainPos - pos).magnitude
1462
			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)
1463
			MainPos = MainPos + MouseLook.lookVector * speed
1464
			num = num - 1
1465
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1466
			if hit ~= nil then
1467
				num = 0
1468
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1469
				refpart.Anchored = true
1470
				refpart.CFrame = CFrame.new(pos)
1471
				game:GetService("Debris"):AddItem(refpart, 2)
1472
			end
1473
			do
1474
				if num <= 0 then
1475
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1476
					refpart.Anchored = true
1477
					refpart.CFrame = CFrame.new(pos)
1478
					if hit ~= nil then
1479
						
1480
					
1481
						
1482
						GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
1483
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
1484
--						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
1485
--						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
1486
						MagniDamage(refpart, 6, 10, 25, 0, "Slice")
1487
					end
1488
					game:GetService("Debris"):AddItem(refpart, 0)
1489
				end
1490
			end
1491
		until num <= 0
1492
	end
1493
))
1494
end
1495
1496
	shoottraildd2 = function(mouse, partt, SpreadAmount)
1497
	
1498
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1499
	local MainPos = partt.Position
1500
	local MainPos2 = mouse + SpreadVectors
1501
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1502
	local speed = 1000
1503
	local num = 1
1504
	coroutine.resume(coroutine.create(function()
1505
		
1506
		repeat
1507
			swait()
1508
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1509
			local mag = (MainPos - pos).magnitude
1510
			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)
1511
			MainPos = MainPos + MouseLook.lookVector * speed
1512
			num = num - 1
1513
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1514
			if hit ~= nil then
1515
				num = 0
1516
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1517
				refpart.Anchored = true
1518
				refpart.CFrame = CFrame.new(pos)
1519
				game:GetService("Debris"):AddItem(refpart, 2)
1520
			end
1521
			do
1522
				if num <= 0 then
1523
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1524
					refpart.Anchored = true
1525
					refpart.CFrame = CFrame.new(pos)
1526
					if hit ~= nil then
1527
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
1528
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
1529
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
1530
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
1531
						MagniKILL(refpart, 80, 0, "Normal")
1532
					end
1533
					game:GetService("Debris"):AddItem(refpart, 0)
1534
				end
1535
			end
1536
		until num <= 0
1537
	end
1538
))
1539
	end
1540
	
1541
	shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
1542
	
1543
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1544
	local MainPos = partt.Position
1545
	local MainPos2 = mouse + SpreadVectors
1546
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1547
	local speed = 200
1548
	local num = 0
1549
	coroutine.resume(coroutine.create(function()
1550
		
1551
		repeat
1552
			swait()
1553
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1554
			local mag = (MainPos - pos).magnitude
1555
			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)
1556
			MainPos = MainPos + MouseLook.lookVector * speed
1557
			num = num - 1
1558
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1559
			if hit ~= nil then
1560
				num = 0
1561
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1562
				refpart.Anchored = true
1563
				refpart.CFrame = CFrame.new(pos)
1564
				BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1565
				game:GetService("Debris"):AddItem(refpart, 2)
1566
			end
1567
			do
1568
				if num <= 0 then
1569
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1570
					refpart.Anchored = true
1571
					refpart.CFrame = CFrame.new(pos)
1572
					if hit ~= nil then
1573
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
1574
						BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
1575
						BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1576
						
1577
							
1578
						MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
1579
						
1580
					end
1581
					game:GetService("Debris"):AddItem(refpart, 0)
1582
				end
1583
			end
1584
		until num <= 0
1585
	end
1586
))
1587
	end
1588
	
1589
	 shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
1590
	
1591
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1592
	local MainPos = partt.Position
1593
	local MainPos2 = mouse + SpreadVectors
1594
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1595
	local speed = 150
1596
	local num = 1
1597
	coroutine.resume(coroutine.create(function()
1598
		
1599
		repeat
1600
			swait()
1601
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1602
			local mag = (MainPos - pos).magnitude
1603
			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)
1604
			MainPos = MainPos + MouseLook.lookVector * speed
1605
			num = num - 1
1606
			MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
1607
			if hit ~= nil then
1608
				num = 0
1609
				local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1610
				refpart.Anchored = true
1611
				refpart.CFrame = CFrame.new(pos)
1612
				game:GetService("Debris"):AddItem(refpart, 2)
1613
			end
1614
			do
1615
				if num <= 0 then
1616
					local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
1617
					refpart.Anchored = true
1618
					refpart.CFrame = CFrame.new(pos)
1619
					if hit ~= nil then
1620
						CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
1621
						BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
1622
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1623
						BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
1624
						MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
1625
					end
1626
					game:GetService("Debris"):AddItem(refpart, 0)
1627
				end
1628
			end
1629
		until num <= 0
1630
	end
1631
))
1632
end
1633
	
1634
	
1635
	
1636
	
1637
	
1638
1639
1640
HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
1641
	
1642
Hitpart3 = Instance.new("Part",HPart3)
1643
RemoveOutlines(Hitpart3)
1644
Hitpart3.Size = Vector3.new(1,1,1)
1645
Hitpart3.CanCollide = false
1646
HuW3 = Instance.new("Weld")
1647
HuW3.Name = "GuW"
1648
HuW3.Part0 = HPart3 
1649
HuW3.C0 = cn(Xv, Yv, Zv)
1650
HuW3.C1 = cn(0, 0, 0) 
1651
HuW3.Part1 = Hitpart3
1652
HuW3.Parent = HPart3
1653
Hitpart3.Transparency = 1
1654
game:GetService("Debris"):AddItem(Hitpart3, 20)
1655
end
1656
1657
HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
1658
	
1659
Hitpart2 = Instance.new("Part",HPart2)
1660
RemoveOutlines(Hitpart2)
1661
Hitpart2.Size = Vector3.new(1,1,1)
1662
Hitpart2.CanCollide = false
1663
HuW2 = Instance.new("Weld")
1664
HuW2.Name = "GuW"
1665
HuW2.Part0 = HPart2 
1666
HuW2.C0 = cn(Xv, Yv, Zv)
1667
HuW2.C1 = cn(0, 0, 0) 
1668
HuW2.Part1 = Hitpart2
1669
HuW2.Parent = HPart2
1670
Hitpart2.Transparency = 1
1671
game:GetService("Debris"):AddItem(Hitpart2, 20)
1672
end
1673
1674
1675
HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
1676
	
1677
Hitpart = Instance.new("Part",HPart)
1678
RemoveOutlines(Hitpart)
1679
Hitpart.Size = Vector3.new(1,1,1)
1680
Hitpart.CanCollide = false
1681
HuW = Instance.new("Weld")
1682
HuW.Name = "GuW"
1683
HuW.Part0 = HPart 
1684
HuW.C0 = cn(Xv, Yv, Zv)
1685
HuW.C1 = cn(0, 0, 0) 
1686
HuW.Part1 = Hitpart
1687
HuW.Parent = HPart 
1688
Hitpart.Transparency = 1
1689
game:GetService("Debris"):AddItem(Hitpart2, 20)
1690
MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
1691
1692
end
1693
HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
1694
	
1695
Hitpart4 = Instance.new("Part",HPart)
1696
RemoveOutlines(Hitpart4)
1697
Hitpart4.Size = Vector3.new(1,1,1)
1698
Hitpart4.CanCollide = false
1699
HuW4 = Instance.new("Weld")
1700
HuW4.Name = "HuW4"
1701
HuW4.Part0 = HPart 
1702
HuW4.C0 = cn(Xv, Yv, Zv)
1703
HuW4.C1 = cn(0, 0, 0) 
1704
HuW4.Part1 = Hitpart4
1705
HuW4.Parent = HPart 
1706
Hitpart4.Transparency = 1
1707
game:GetService("Debris"):AddItem(Hitpart4, 1.5)
1708
MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
1709
1710
end
1711
1712
1713
HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
1714
	
1715
Hitboxpart = Instance.new("Part",Character)
1716
RemoveOutlines(Hitboxpart)
1717
Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
1718
Hitboxpart.CanCollide = false
1719
Hitboxpart.Transparency = 1
1720
Hitboxpart.Anchored = true
1721
Hitboxpart.CFrame = Pose
1722
game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
1723
MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
1724
1725
end
1726
1727
1728
wait2 = false
1729
1730
1731
combo = 1
1732
1733
1734
1735
1736
duljump = false
1737
duljump2 = false
1738
jumpatck = false
1739
		mouse.KeyDown:connect(function(k)
1740
if k == "0" then	
1741
	
1742
Runkey = true
1743
1744
end 
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
 if k == "e" and attack == false then	
1756
attack = true
1757
	
1758
Humanoid.WalkSpeed = 0	
1759
1760
							CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 2, 1)
1761
1762
for i = 0, 2, 0.1 do
1763
        swait()
1764
1765
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1766
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1767
					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)
1768
					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)
1769
					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)
1770
					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)
1771
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1772
		
1773
1774
		
1775
end	
1776
1777
for i = 0, 4, 0.1 do
1778
        swait()
1779
1780
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1781
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1782
					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)
1783
					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)
1784
					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)
1785
					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)
1786
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1787
		
1788
1789
		
1790
end	
1791
for i = 0, 1 do
1792
for i = 0, 1, 0.1 do
1793
        swait()
1794
1795
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1796
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1797
					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)
1798
					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)
1799
					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)
1800
					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)
1801
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1802
		
1803
1804
		
1805
end	
1806
for i = 0, 1, 0.1 do
1807
        swait()
1808
1809
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
1810
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1811
					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)
1812
					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)
1813
					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)
1814
					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)
1815
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)		
1816
		
1817
1818
		
1819
end		
1820
end
1821
1822
Humanoid.WalkSpeed = 16	
1823
1824
attack = false
1825
1826
1827
1828
1829
end
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
end)	
1848
hitwait = false 
1849
function onTouch(part)
1850
1851
local humanoid = part.Parent:findFirstChild("Humanoid")
1852
local model = part.Parent
1853
local torso = part.Parent:FindFirstChild("Torso")
1854
local head = part.Parent:findFirstChild("Head")
1855
local leftleg = part.Parent:findFirstChild("Left Leg")
1856
local rightleg = part.Parent:findFirstChild("Right Leg")
1857
local leftarm = part.Parent:findFirstChild("Left Arm")
1858
local rightarm = part.Parent:findFirstChild("Right Arm")
1859
1860
	if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
1861
	
1862
hitwait = true			
1863
1864
1865
	
1866
1867
if (humanoid ~=nil) and humanoid.Health >0.01 and  Torsovelocity > 1 then
1868
1869
	 if IKM == true then
1870
Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)	
1871
Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)		
1872
model:BreakJoints() 
1873
1874
else
1875
Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)	
1876
Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)	
1877
MagniDamage(FrontPart, 6.5, 6, 6, .3, "Knockdown")
1878
1879
	end
1880
1881
attack = true
1882
Humanoid.WalkSpeed = 0	
1883
							local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
1884
1885
							game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
1886
							
1887
for i = 0, .5, 0.1 do
1888
        swait()
1889
1890
			  		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
1891
					Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
1892
					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)
1893
					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)
1894
					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)
1895
					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)
1896
SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)		
1897
		
1898
1899
		
1900
end	
1901
1902
	
1903
Humanoid.WalkSpeed = 16	
1904
end
1905
attack = false
1906
wait(.08)
1907
hitwait = false	
1908
	end
1909
	
1910
	end
1911
FrontPart.Touched:connect(onTouch)
1912
1913
1914
1915
				mouse.KeyUp:connect(function(k)
1916
if k == "0"then	
1917
Runkey = false
1918
1919
end 
1920
1921
1922
			
1923
		
1924
1925
1926
				end)
1927
				
1928
humHsave = Humanoid.Health 				
1929
function GainCharge(Humanoid)
1930
if	Humanoid.Health == 0 then		
1931
			equipped = false
1932
			end
1933
if blocking == true then
1934
1935
humDsave = Humanoid.Health
1936
humDsave = humHsave - humDsave
1937
if humDsave >0.01 then
1938
1939
CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)	
1940
BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1,              0.02,2)	
1941
BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,          0.02,2)	
1942
BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)	
1943
BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,           0.02,2)	
1944
BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1,            0.02,2)	
1945
humDsave = humDsave/3
1946
end
1947
if humDsave <0 then
1948
1949
1950
Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
1951
--[[
1952
BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0,             0.1,2)	
1953
BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0,          0.1,2)	
1954
BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0,           0.1,2)	
1955
BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0,          0.1,2)	
1956
BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0,           0.1,2)	
1957
--]]
1958
humDsave = humDsave*2.5
1959
end
1960
1961
humHsave = humHsave - humDsave
1962
1963
1964
1965
1966
end
1967
1968
end
1969
1970
 Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) 				
1971
				
1972
				
1973
	OnDeath = function()			
1974
1975
		equipped = false
1976
		
1977
			
1978
				
1979
		end		
1980
			
1981
Humanoid.Died:connect(function()OnDeath(Character)end)
1982
1983
					
1984
				
1985
				print('Created By Draconix')