View difference between Paste ID: iRhqfZnJ and wRrTHmgQ
SHOW: | | - or go back to the newest paste.
1
	--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
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={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=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
6
7
8
--[[ Script Converted by WafflesAreVeryGood (Nobody#3907 on discord) ]]--
9
local plr = game:GetService('Players').LocalPlayer
10
local char = plr.Character
11
local mouse = plr:GetMouse()
12
--Converted with ttyyuu12345's model to script plugin v4
13
--------------------------------------------------------
14
local Level=1
15
local function RiseLevel(hum,dmg)
16
if tonumber(Level)then
17
if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+1
18
local s=Instance.new("Sound")end--s. end
19
else warn'String is not able to level up , or having issure to level.'end
20
end
21
--------------------------------------------------------
22
CV="Eggplant"
23
    p = game.Players.LocalPlayer
24
    char = p.Character
25
    local txt = Instance.new("BillboardGui", char)
26
    txt.Adornee = char .Head
27
    txt.Name = "_status"
28
    txt.Size = UDim2.new(2, 0, 1.2, 0)
29
    txt.StudsOffset = Vector3.new(-9, 8, 0)
30
    local text = Instance.new("TextLabel", txt)
31
    text.Size = UDim2.new(10, 0, 7, 0)
32
    text.FontSize = "Size24"
33
    text.TextScaled = true
34
    text.TextTransparency = 0
35
    text.BackgroundTransparency = 1
36
    text.TextTransparency = 0
37
    text.TextStrokeTransparency = 0
38
    text.Font = "Fantasy"
39
    text.TextStrokeColor3 = Color3.new(255,255,255)
40
 
41
    v=Instance.new("Part")
42
    v.Name = "ColorBrick"
43
    v.Parent=p.Character
44
    v.FormFactor="Symmetric"
45
    v.Anchored=true
46
    v.CanCollide=false
47
    v.BottomSurface="Smooth"
48
    v.TopSurface="Smooth"
49
    v.Size=Vector3.new(10,5,3)
50
    v.Transparency=1
51
    v.CFrame=char.Torso.CFrame
52
    v.BrickColor=BrickColor.new(CV)
53
    v.Transparency=1
54
    text.TextColor3 = Color3.new(0,0,0)
55
    v.Shape="Block"
56
    wait()
57-
    text.Text = "HARD MODE!"
57+
    text.Text = "HMM HMMM HA HA HA HA IM HAVE QUESTION"
58
    wait(2)
59-
    text.Text = "I'm getting tired of you...";
59+
    text.Text = "YOU WANT DIE?!!!";
60
        wait(3)
61
        text.TextColor3 = Color3.new(0,0,0)  
62-
        spawn(function()while wait()do text.Text = "Sans the Skeleton LV"..tostring(Level)end end)
62+
        spawn(function()while wait()do text.Text = "CORRUPTED MICHEAL LV"..tostring(Level)end end)
63
---------------------------------------
64-
char.Head.face.Texture = "rbxassetid://416805592"
64+
char.Head.face.Texture = "rbxassetid://404306534"
65
char:WaitForChild"Body Colors"
66-
char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
66+
char["Body Colors"].HeadColor = BrickColor.new("Really black")
67-
char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
67+
char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
68-
char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
68+
char["Body Colors"].RightArmColor = BrickColor.new("Really black")
69-
char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
69+
char["Body Colors"].TorsoColor = BrickColor.new("Really black")
70-
char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
70+
char["Body Colors"].RightLegColor = BrickColor.new("Really black")
71-
char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
71+
char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
72-
char.Humanoid.MaxHealth = 9000000000000000000000000000000000000000000000000000000000000000000
72+
73
ypcall(function()
74-
		Hulmet = Instance.new("Part")
74+
75-
		Hulmet.Position = Hulmet.Position + Vector3.new(0,10,0)
75+
76-
		Hulmet.Parent = game.Players.LocalPlayer.Character
76+
77-
		Hulmet.Name = "Helmet"
77+
78-
		Hulmet.Size = Vector3.new(1.643, 1.157, 1.696)
78+
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=71047904"
79-
		Hulmet.Material = Enum.Material.Metal
79+
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=71047904"
80-
		Hulmet.BrickColor = BrickColor.new("Grey")
80+
81-
		MSHE = Instance.new("SpecialMesh")
81+
82-
		MSHE.Parent = Hulmet
82+
83-
		MSHE.MeshId = "rbxassetid://101203373"
83+
KG.Volume = 3
84-
		WULD = Instance.new("Weld")
84+
KG.SoundId = "rbxassetid://1138145518"
85-
		WULD.Parent = Hulmet
85+
86-
		WULD.Part0 = Hulmet
86+
87-
		WULD.Part1 = game.Players.LocalPlayer.Character.Head
87+
88-
		WULD.C1 = CFrame.Angles(0,0,0)
88+
89-
		WULD.C0 = CFrame.new(0,0,0)
89+
90
	local newenv = setmetatable({},{
91
		__index = function(self,k)
92
			if k=="script" then
93
				return var
94
			else
95
				return env[k]
96-
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=2281353583"
96+
97-
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1385501582"
97+
98
	})
99
	setfenv(func,newenv)
100
	return func
101-
KG.Volume = 1.1
101+
102-
KG.SoundId = "rbxassetid://1334822627"
102+
103
mas = Instance.new("Model",game:GetService("Lighting"))
104
Tool0 = Instance.new("Tool")
105
Folder1 = Instance.new("Folder")
106
Sound2 = Instance.new("Sound")
107
Model3 = Instance.new("Model")
108
Part4 = Instance.new("Part")
109
SpecialMesh5 = Instance.new("SpecialMesh")
110
ManualWeld6 = Instance.new("ManualWeld")
111
ManualWeld7 = Instance.new("ManualWeld")
112
ManualWeld8 = Instance.new("ManualWeld")
113
WedgePart9 = Instance.new("WedgePart")
114
Part10 = Instance.new("Part")
115
SpecialMesh11 = Instance.new("SpecialMesh")
116
Script12 = Instance.new("Script")
117
Part13 = Instance.new("Part")
118
ParticleEmitter14 = Instance.new("ParticleEmitter")
119
Part15 = Instance.new("Part")
120
ParticleEmitter16 = Instance.new("ParticleEmitter")
121
Animation17 = Instance.new("Animation")
122
Tool0.Name = "Gaster Blaster"
123
Tool0.Parent = mas
124
Tool0.TextureId = "rbxassetid://382220657"
125
Tool0.ToolTip = "Gaster Blaster: Used By Sans"
126
Tool0.CanBeDropped = false
127
Folder1.Parent = Tool0
128
Sound2.Name = "GBSound"
129
Sound2.Parent = Folder1
130
Sound2.SoundId = "rbxassetid://382265669"
131
Sound2.Volume = 1
132
Model3.Name = "GB"
133
Model3.Parent = Folder1
134
Model3.PrimaryPart = Part4
135
Part4.Name = "Main"
136
Part4.Parent = Model3
137
Part4.Material = Enum.Material.SmoothPlastic
138
Part4.BrickColor = BrickColor.new("Institutional white")
139
Part4.Rotation = Vector3.new(178.669998, -0.049999997, 179.819992)
140
Part4.Anchored = true
141
Part4.CanCollide = false
142
Part4.FormFactor = Enum.FormFactor.Custom
143
Part4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
144
Part4.CFrame = CFrame.new(9.6476717, 212.837067, 62.5175667, -0.999994874, -0.0030922927, -0.000849041739, -0.00307168509, 0.999724269, -0.0232850946, 0.000920811843, -0.0232823677, -0.99972856)
145
Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
146
Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
147
Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
148
Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
149
Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
150
Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
151
Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
152
Part4.Position = Vector3.new(9.6476717, 212.837067, 62.5175667)
153
Part4.Orientation = Vector3.new(1.32999992, -179.949997, -0.179999992)
154
Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
155
SpecialMesh5.Parent = Part4
156
SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=14028428"
157
SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
158
SpecialMesh5.VertexColor = Vector3.new(1000000, 10000, 10000)
159
SpecialMesh5.MeshType = Enum.MeshType.FileMesh
160
SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
161
ManualWeld6.Name = "Weld"
162
ManualWeld6.Parent = Part4
163
ManualWeld6.C0 = CFrame.new(0, 0, 0, -0.999994874, -0.00307097379, 0.000981842401, -0.00309300236, 0.99972415, -0.0232822727, -0.000910072413, -0.0232851878, -0.999728441)
164
ManualWeld6.C1 = CFrame.new(0.225479126, 3.69114685, 0.0936775208, -0.0154458769, 0.34394905, 0.93886131, 0.0187007096, 0.938908398, -0.343658656, -0.999705911, 0.0122492611, -0.0209343527)
165
ManualWeld6.Part0 = Part4
166
ManualWeld6.Part1 = nil
167
ManualWeld7.Name = "Weld"
168
ManualWeld7.Parent = Part4
169
ManualWeld7.C0 = CFrame.new(0, 0, 0, -0.999994874, -0.00307097379, 0.000981842401, -0.00309300236, 0.99972415, -0.0232822727, -0.000910072413, -0.0232851878, -0.999728441)
170
ManualWeld7.C1 = CFrame.new(0.141029358, 4.85009766, 0.616783142, -0.872494459, -0.293409586, 0.390722692, -0.0644136816, 0.861726344, 0.503268003, -0.484359652, 0.413930595, -0.770751119)
171
ManualWeld7.Part0 = Part4
172
ManualWeld7.Part1 = nil
173
ManualWeld8.Name = "Weld"
174
ManualWeld8.Parent = Part4
175
ManualWeld8.C0 = CFrame.new(0, 0, 0, -0.999994874, -0.00307097379, 0.000981842401, -0.00309300236, 0.99972415, -0.0232822727, -0.000910072413, -0.0232851878, -0.999728441)
176
ManualWeld8.C1 = CFrame.new(0.0476670265, 0.962097168, 5.07106781, 1, 3.98733209e-05, -1.65144629e-05, -1.65144629e-05, 0.707063794, 0.707141817, 3.98733209e-05, -0.707141817, 0.707063794)
177
ManualWeld8.Part0 = Part4
178
ManualWeld8.Part1 = WedgePart9
179
WedgePart9.Parent = Model3
180
WedgePart9.BrickColor = BrickColor.new("Institutional white")
181
WedgePart9.Rotation = Vector3.new(45, 0, 0)
182
WedgePart9.CanCollide = false
183
WedgePart9.FormFactor = Enum.FormFactor.Symmetric
184
WedgePart9.Size = Vector3.new(1.60000014, 1.5999999, 4.4000001)
185
WedgePart9.CFrame = CFrame.new(9.59999466, 215.742599, 58.2514572, 1, 1.65165984e-05, -3.98718948e-05, -3.98723896e-05, 0.707119346, -0.707094252, 1.65153942e-05, 0.707094252, 0.707119346)
186
WedgePart9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
187
WedgePart9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
188
WedgePart9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
189
WedgePart9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
190
WedgePart9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
191
WedgePart9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
192
WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
193
WedgePart9.Position = Vector3.new(9.59999466, 215.742599, 58.2514572)
194
WedgePart9.Orientation = Vector3.new(45, 0, 0)
195
WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
196
Part10.Name = "GBBeam"
197
Part10.Parent = Folder1
198
Part10.Material = Enum.Material.SmoothPlastic
199
Part10.BrickColor = BrickColor.new("Institutional white")
200
Part10.Rotation = Vector3.new(0, 90, 0)
201
Part10.Anchored = true
202
Part10.CanCollide = false
203
Part10.FormFactor = Enum.FormFactor.Custom
204
Part10.Size = Vector3.new(200, 6, 6)
205
Part10.CFrame = CFrame.new(-2.50004816, 4.40002823, -1021.19995, 5.34682295e-05, 1.23517841e-13, 1, -4.3159529e-05, 1, 2.30754016e-09, -1, -4.3159529e-05, 5.34682331e-05)
206
Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
207
Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
208
Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
209
Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
210
Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
211
Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
212
Part10.Color = Color3.new(1, 1, 1)
213
Part10.Position = Vector3.new(-2.50004816, 4.40002823, -1021.19995)
214
Part10.Orientation = Vector3.new(0, 90, 0)
215
Part10.Color = Color3.new(1, 1, 1)
216
SpecialMesh11.Parent = Part10
217-
Part10.BrickColor = BrickColor.new("Bright blue")
217+
218
Script12.Parent = Part10
219
Script12.Disabled = true
220
Part13.Name = "HandFlame"
221
Part13.Parent = Folder1
222
Part13.Transparency = 1
223
Part13.Rotation = Vector3.new(0, 0, -30)
224
Part13.Anchored = true
225
Part13.CanCollide = false
226
Part13.FormFactor = Enum.FormFactor.Custom
227
Part13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
228
Part13.CFrame = CFrame.new(-8.29995918, 203.950241, 50.9999504, 0.866004944, 0.500030637, -2.15781438e-05, -0.500030637, 0.866004944, 3.73764087e-05, 3.73764087e-05, -2.15781438e-05, 1)
229
Part13.Position = Vector3.new(-8.29995918, 203.950241, 50.9999504)
230
Part13.Orientation = Vector3.new(0, 0, -30)
231
ParticleEmitter14.Name = "Flame"
232
ParticleEmitter14.Parent = Part13
233
ParticleEmitter14.Transparency = NumberSequence.new(0.69999998807907,0.69999998807907,0.94999998807907,1)
234
ParticleEmitter14.Rotation = NumberRange.new(-180, 180)
235
ParticleEmitter14.Size = NumberSequence.new(0.5,0.5)
236
ParticleEmitter14.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
237
ParticleEmitter14.LightEmission = 1
238
ParticleEmitter14.Texture = "http://www.roblox.com/asset/?id=298319954"
239
ParticleEmitter14.ZOffset = 0.5
240
ParticleEmitter14.Lifetime = NumberRange.new(3, 3)
241
ParticleEmitter14.Rate = 500
242
ParticleEmitter14.Speed = NumberRange.new(2, 2)
243
ParticleEmitter14.VelocitySpread = 45
244
ParticleEmitter14.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
245
Part15.Name = "HeadFlame"
246
Part15.Parent = Folder1
247
Part15.Transparency = 1
248
Part15.Rotation = Vector3.new(0, 0, 79.6899948)
249
Part15.Anchored = true
250
Part15.CanCollide = false
251
Part15.FormFactor = Enum.FormFactor.Custom
252
Part15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
253
Part15.CFrame = CFrame.new(-10.0999317, 211.071381, 50.400013, 0.178991079, -0.983850658, -4.29847787e-05, 0.983850658, 0.178991094, 3.88006174e-06, 3.87649106e-06, -4.29850988e-05, 1)
254
Part15.Position = Vector3.new(-10.0999317, 211.071381, 50.400013)
255
Part15.Orientation = Vector3.new(0, 0, 79.6899948)
256
ParticleEmitter16.Name = "Flame"
257
ParticleEmitter16.Parent = Part15
258
ParticleEmitter16.Transparency = NumberSequence.new(0.69999998807907,0.89999997615814,1)
259
ParticleEmitter16.Rotation = NumberRange.new(-180, 180)
260
ParticleEmitter16.Size = NumberSequence.new(0.5,0.5)
261
ParticleEmitter16.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
262
ParticleEmitter16.LightEmission = 1
263
ParticleEmitter16.Texture = "http://www.roblox.com/asset/?id=134531489"
264
ParticleEmitter16.Acceleration = Vector3.new(0, 20, 0)
265
ParticleEmitter16.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
266
ParticleEmitter16.Rate = 500
267
ParticleEmitter16.Speed = NumberRange.new(10, 10)
268
ParticleEmitter16.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
269
Animation17.Name = "GBSend"
270
Animation17.Parent = Folder1
271
Animation17.AnimationId = "http://www.roblox.com/GBSend-item?id=388238523"
272
for i,v in pairs(mas:GetChildren()) do
273
	v.Parent = game:GetService("Players").LocalPlayer.Character
274
	pcall(function() v:MakeJoints() end)
275
end
276
mas:Destroy()
277
for i,v in pairs(cors) do
278
	spawn(function()
279
		pcall(v)
280
	end)
281
end
282
Tool0.RequiresHandle = false
283
local tool = char["Gaster Blaster"]
284
for i,v in pairs(tool.Folder:GetChildren()) do
285
	v.Parent = script
286
end
287
script.Parent = tool
288
tool.Parent = plr.Backpack
289
local hum=char:WaitForChild("Humanoid")
290
local torso=char:WaitForChild("Torso")
291
local hrp=char:WaitForChild("HumanoidRootPart")
292
local check=false
293
local dmg=false
294
local combo=false
295
local comboing=false
296
local gb=script.GB
297
local gbsend=hum:LoadAnimation(script.GBSend)
298
local equipped=false
299
local tool=script.Parent
300
local closest=nil
301
crosstab={
302
	[1]={math.cos(math.rad(45)),math.sin(math.rad(45))},
303
	[2]={math.cos(math.rad(135)),math.sin(math.rad(135))},
304
	[3]={math.cos(math.rad(225)),math.sin(math.rad(225))},
305
	[4]={math.cos(math.rad(315)),math.sin(math.rad(315))}
306
}
307
local attacklist={}
308
local rignore={}
309
local lgb=nil
310
local rgb=nil
311
local lgbbp=nil
312
local rgbbp=nil
313
local lgbbg=nil
314
local rgbbg=nil
315
local headf=nil
316
local handf=nil
317
318
for _,v in pairs(workspace:GetChildren()) do
319
	if not v:FindFirstChild("Humanoid") then
320
		table.insert(rignore,v)
321
	end
322
end
323
324
function Loop()
325
	coroutine.resume(coroutine.create(function()
326
		while equipped==true do
327
			repeat wait() until rgb:FindFirstChild("Main") and lgb:FindFirstChild("Main")
328
			rgb.Main.Velocity = Vector3.new()
329
			lgb.Main.Velocity = Vector3.new()
330
			rgbbp.Position=(hrp.CFrame*CFrame.new(10,5,0)).p
331
			lgbbp.Position=(hrp.CFrame*CFrame.new(-10,5,0)).p
332
			rgbbg.CFrame=CFrame.new(rgb.Main.Position,mouse.Hit.p)
333
			lgbbg.CFrame=CFrame.new(lgb.Main.Position,mouse.Hit.p)
334
			rgb.Main.Anchored = false
335
			lgb.Main.Anchored = false
336
			wait()
337
		end
338
	end))
339
end
340
341
local function PrepareHurt(proj,dmgcheck,dmg)
342
	return --[[
343
	local ray=Ray.new((proj.CFrame*CFrame.new(-proj.Size.X/2,0,0)).p,(hitpos-(proj.CFrame*CFrame.new(-proj.Size.X/2,0,0)).p).unit*100)
344
	for _,v in pairs(workspace:GetChildren()) do
345
		if v.Name=="GBBeam" then
346
			table.insert(rignore,v)
347
		end
348
	end
349
	local hit=workspace:FindPartOnRayWithIgnoreList(ray,rignore)
350
	if hit then
351
		if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name~=plr.Name then
352
			if hit.Parent.Humanoid.Health>0 then
353
				hit.Parent.Humanoid:TakeDamage(dmg)
354
			end
355
		end
356
	end]]
357
end
358
function fakescript(beamasd)
359
local script = {Parent = beamasd}
360
local key=math.random()
361
362
function onTouched(hit)
363
	local human = hit.Parent:FindFirstChildOfClass("Humanoid") 
364
        --Basically this just checks to see if it is a real player touching this brick.
365
	if (human ~= nil) and hit.Parent ~= char then --If it is a real player, then DESTROY THEM!
366
		print("y'all")
367
		human.Health = human.Health - 7.5*(1-script.Parent.Transparency)
368
	end
369
end
370
371
372
if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
373
	connection = script.Parent.Touched:connect(onTouched)
374
end
375
local beam=script.Parent
376
local bp = Instance.new("BodyPosition")
377
bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
378
bp.Position = beam.Position
379
bp.Parent = beam
380
beam.Anchored = false
381
coroutine.resume(coroutine.create(function()
382
	wait(0.3)
383
	for i=1,10 do
384
		if not beam:FindFirstChild"Mesh" then return end
385
		beam.Mesh.Scale=Vector3.new(1,1-(i/9),1-(i/9))
386
		wait()
387
	end
388
end))
389
wait(0.4)
390
for i=1,15 do
391
	bp.Position = beam.Position
392
	beam.Transparency=i/15
393
	wait()
394
end
395
wait()
396
beam:Destroy()
397
end
398
local function FIRE(obj,mode,thitpos)
399
	coroutine.resume(coroutine.create(function()
400
		if mode=="Normal" then
401
			obj.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
402
		end
403
		local dmgcheck=false
404
		local gbsfx=script.GBSound:Clone()
405
		gbsfx.Parent=obj.Main
406
		gbsfx:Play()
407
		game.Debris:AddItem(gbsfx,3)
408
		wait(1)
409
		local beam=script.GBBeam:Clone()
410
		beam.CFrame=obj.Main.CFrame*CFrame.new(0,-3,1)
411
		spawn(function()
412
		fakescript(beam)
413
		end)
414
		beam.Size=Vector3.new(((beam.CFrame*CFrame.new(0,0,-beam.Size.X/2)).p-hitpos).magnitude*2,beam.Size.Y,beam.Size.Z)
415
		if mode~="Dual" then
416
			beam.CFrame=CFrame.new(beam.Position,thitpos)*CFrame.Angles(0,math.pi/2,0)
417
		else
418
			beam.CFrame=CFrame.new(beam.Position,mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
419
		end
420
		beam.CFrame=beam.CFrame*CFrame.new(beam.Size.X/2,0,0)
421
		beam.Transparency=0
422
		local m = Instance.new("SpecialMesh")
423
		m.MeshType = "Cylinder"
424
		m.Parent = beam
425
		beam.Mesh.Scale=Vector3.new(1,1,1)
426
		--PrepareHurt(beam,dmgcheck,10)
427
		beam.Parent = char
428
		if mode=="Dual" then
429
		end
430
	end))
431
end
432
433
local function Lerp(obj,kind,nb,total,spec)
434
	obj.Main.Anchored=false
435
	local bodyp=Instance.new("BodyPosition",obj.Main)
436
	bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
437
	bodyp.D=100
438
	bodyp.P=1000
439
	local gyro=Instance.new("BodyGyro",obj.Main)
440
	gyro.MaxTorque=Vector3.new(10000,10000,10000)
441
	gyro.D=80
442
	if kind=="Front" then
443
		obj.CFrame=hrp.CFrame*CFrame.new(math.random(-10,10),math.random(0,5),-5)
444
	end
445
	coroutine.resume(coroutine.create(function()
446
		wait()
447
		gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
448
		wait(0.5)
449
		gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
450
	end))
451
	if kind=="Line" then
452
		if total==0 then
453
			bodyp.Position=hrp.Position+Vector3.new(0,10,0)	
454
		elseif total==2 then
455
			if nb==1 then
456
				bodyp.Position=hrp.Position+Vector3.new(5,0,4)
457
			elseif nb==2 then
458
				bodyp.Position=hrp.Position+Vector3.new(-5,0,4)
459
			end
460
		elseif total==6 then
461
			if nb==1 then
462
				bodyp.Position=(hrp.CFrame*CFrame.new(-30,1,0)).p
463
			elseif nb==2 then
464
				bodyp.Position=(hrp.CFrame*CFrame.new(-20,1,0)).p
465
			elseif nb==3 then
466
				bodyp.Position=(hrp.CFrame*CFrame.new(-10,1,0)).p
467
			elseif nb==4 then
468
				bodyp.Position=(hrp.CFrame*CFrame.new(10,1,0)).p
469
			elseif nb==5 then
470
				bodyp.Position=(hrp.CFrame*CFrame.new(20,1,0)).p
471
			elseif nb==6 then
472
				bodyp.Position=(hrp.CFrame*CFrame.new(30,1,0)).p
473
			end
474
		end
475
	elseif kind=="Circle" then
476
		if spec=="Cross" then
477
			bodyp.Position=hitpos+Vector3.new(crosstab[nb][1],3/50,crosstab[nb][2])*50
478
		elseif spec=="Plus" or spec=="Total" then
479
			bodyp.Position=hitpos+Vector3.new(math.cos(math.rad(nb*(360/total))),3/50,math.sin(math.rad(nb*(360/total))))*50
480
		end
481
	end
482
end
483
function debris(obj, t)
484
	spawn(function()
485
		wait(t)
486
		for i = 1, 10 do
487
			for _,v in pairs(obj:GetChildren()) do
488
				if v:IsA("BasePart") and v.Transparency < 1 then
489
					v.Transparency = i/10
490
				end
491
			end
492
			game:GetService('RunService').Stepped:wait(0)
493
		end
494
		for _,v in pairs(obj:GetChildren()) do
495
			v:Destroy()
496
		end
497
	end)
498
end
499
500
local function PrepareAttack(key)
501
	if check==false and hum.Health>0 then
502
		if closest==nil then
503
			hitpos=mouse.Hit.p
504
		else
505
			hitpos=closest.Torso.Position
506
		end
507
		if equipped==true then
508
			if key=="q" then
509
				combo=true
510
			elseif key=="e" then
511
				if combo==false then
512
					check=true
513
					hum.WalkSpeed=0
514
					gbsend:Play()
515
					local gbc=gb:Clone()
516
					gbc.Parent=char
517
					gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
518
					Lerp(gbc,"Line",0,0)
519
					FIRE(gbc,"Normal",hitpos)
520
					hum.WalkSpeed=30
521
					debris(gbc, 1.8)
522
					if comboing==false then
523
						wait(1)
524
					else
525
						wait(0.25)
526
					end
527
					check=false
528
				elseif combo==true and #attacklist<5 then
529
					table.insert(attacklist,key)
530
				end
531
			elseif key=="r" then
532
				if combo==false then
533
					check=true
534
					hum.WalkSpeed=0
535
					gbsend:Play()
536
					FIRE(lgb,"Dual",hitpos)
537
					FIRE(rgb,"Dual",hitpos)
538
					hum.WalkSpeed=30
539
					if comboing==false then
540
						wait(1.5)
541
					else
542
						wait(0.325)
543
					end
544
					check=false
545
				elseif combo==true and #attacklist<5 then
546
					table.insert(attacklist,key)
547
				end
548
			elseif key=="t" then
549
				if combo==false then
550
					check=true
551
					hum.WalkSpeed=0
552
					gbsend:Play()
553
					for i=1,12 do
554
						local gbc=gb:Clone()
555
						gbc.Parent=char
556
						debris(gbc, 1.8)
557
						gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
558
						coroutine.resume(coroutine.create(function()
559
							Lerp(gbc,"Circle",i,12,"Total")
560
							FIRE(gbc,"Normal",hitpos)
561
						end))
562
						wait(0.05)
563
					end
564
					hum.WalkSpeed=30
565
					if comboing==false then
566
						wait(7)
567
					else
568
						wait(5)
569
					end
570
					check=false
571
				elseif combo==true and #attacklist==4 then
572
					table.insert(attacklist,key)
573
				end
574
			elseif key=="f" then
575
				if combo==false then
576
					check=true
577
					hum.WalkSpeed=0
578
					gbsend:Play()
579
					for i=1,4 do
580
						local gbc=gb:Clone()
581
						gbc.Parent=char
582
						debris(gbc, 1.8)
583
						coroutine.resume(coroutine.create(function()
584
							Lerp(gbc,"Circle",i,4,"Plus")
585
							FIRE(gbc,"Normal",hitpos)
586
						end))
587
					end
588
					hum.WalkSpeed=30
589
					if comboing==false then
590
						wait(2)
591
					else
592
						wait(0.5)
593
					end
594
					check=false
595
				elseif combo==true and #attacklist<5 then
596
					table.insert(attacklist,key)
597
				end
598
			elseif key=="g" then
599
				if combo==false then
600
					check=true
601
					hum.WalkSpeed=0
602
					gbsend:Play()
603
					for i=1,4 do
604
						local gbc=gb:Clone()
605
						gbc.Parent=char
606
						debris(gbc, 1.8)
607
						coroutine.resume(coroutine.create(function()
608
							Lerp(gbc,"Circle",i,4,"Cross")
609
							FIRE(gbc,"Normal",hitpos)
610
						end))
611
					end
612
					hum.WalkSpeed=30
613
					if comboing==false then
614
						wait(2)
615
					else
616
						wait(0.5)
617
					end
618
					check=false
619
				elseif combo==true and #attacklist<5 then
620
					table.insert(attacklist,key)
621
				end
622
			elseif key=="h" then
623
				if combo==false then
624
					check=true
625
					hum.WalkSpeed=0
626
					gbsend:Play()
627
					for i=1,8 do
628
						local gbc=gb:Clone()
629
						gbc.Parent=char
630
						debris(gbc, 1.8)
631
						coroutine.resume(coroutine.create(function()
632
							Lerp(gbc,"Circle",i,8,"Total")
633
							FIRE(gbc,"Normal",hitpos)
634
						end))
635
					end
636
					hum.WalkSpeed=30
637
					if comboing==false then
638
						wait(2)
639
					else
640
						wait(.5)
641
					end
642
					check=false
643
				elseif combo==true and #attacklist<3 then
644
					table.insert(attacklist,key)
645
				end
646
			end
647
		end
648
	end
649
end
650
651
mouse.KeyUp:connect(function(key)
652
	if key=="q" and combo==true and check==false then
653
		combo=false
654
		comboing=true
655
		for _,v in pairs(attacklist) do
656
			PrepareAttack(v)
657
		end
658
		attacklist={}
659
		comboing=false
660
		check=true
661
		wait(5)
662
		check=false
663
	end
664
end)
665
666
mouse.KeyDown:connect(PrepareAttack)
667
668
tool.Equipped:connect(function()
669
	equipped=true
670
	lgb=script.GB:Clone()
671
	lgb.Parent=char
672
	lgb.Main.Anchored=true
673
	rgb=script.GB:Clone()
674
	rgb.Parent=char
675
	rgb.Main.Anchored=true
676
	rgbbp=Instance.new("BodyPosition")
677
	rgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
678
	rgbbp.D=200
679
	rgbbp.Position = char.Torso.Position
680
	rgbbp.P=300
681
	lgbbp=Instance.new("BodyPosition")
682
	lgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
683
	lgbbp.D=200
684
	lgbbp.P=300
685
	lgbbp.Position = char.Torso.Position
686
	lgbbg=Instance.new("BodyGyro")
687
	lgbbg.MaxTorque=Vector3.new(10000,10000,10000)
688
	lgbbg.D=400
689
	rgbbg=Instance.new("BodyGyro")
690
	rgbbg.MaxTorque=Vector3.new(10000,10000,10000)
691
	rgbbg.D=400
692
	headf=script.HeadFlame:Clone()
693
	headf.Parent=char
694
	headf.Anchored=false
695
	local headfw=Instance.new("Weld",headf)
696
	headfw.Part0=char.Head
697
	headfw.Part1=headf
698
	headfw.C0=CFrame.new(-0.125,0.22,-0.55)*CFrame.Angles(0,0,math.pi/2)
699
	handf=script.HandFlame:Clone()
700
	handf.Parent=char
701
	handf.Anchored=false
702
	local handfw=Instance.new("Weld",handf)
703
	handfw.Part0=char["Right Arm"]
704
	handfw.Part1=handf
705
	handfw.C0=CFrame.new(0,-1.25,0)*CFrame.Angles(0,0,-math.pi/4)
706
	rgbbp.Position = char.Torso.Position
707
	lgbbp.Position = char.Torso.Position
708
	rgbbp.Parent = rgb.Main
709
	lgbbp.Parent = lgb.Main
710
	lgbbg.Parent = lgb.Main
711
	rgbbg.Parent = rgb.Main
712
	Loop()
713
end)
714
tool.Unequipped:connect(function()
715
	equipped=false
716
	lgb:Destroy()
717
	rgb:Destroy()
718
	headf:Destroy()
719
	handf:Destroy()
720
end)