View difference between Paste ID: rBWFxBZ2 and abuzemcN
SHOW: | | - or go back to the newest paste.
1-
-- Go to line 2 and change it to your name. LOCAL SCRIPT!!!!!
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2-
me = game.Players.Dark_Eccentric
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={},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 -- Go to line 2 and change it to your name. LOCAL SCRIPT!!!!!
6
me = game.Players.timetodie23232223
7
if script.Parent.className ~= "HopperBin" then
8
h = Instance.new("HopperBin",me.Backpack)
9
h.Name = "LAZOR"
10
script.Parent = h
11
end
12
bin = script.Parent
13
function prop(part, parent, collide, tran, ref, x, y, z, color)
14
part.Parent = parent
15
part.formFactor = 0
16
part.CanCollide = collide
17
part.Transparency = tran
18
part.Reflectance = ref
19
part.Size = Vector3.new(x,y,z)
20
part.BrickColor = BrickColor.new(color)
21
part.TopSurface = 0
22
part.BottomSurface = 0
23
part:BreakJoints()
24
end
25
function weld(w, p, p0, p1, a, b, c, x, y, z)
26
w.Parent = p
27
w.Part0 = p0
28
w.Part1 = p1
29
w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
30
end
31
function mesh(mesh, parent, x, y, z, type)
32
mesh.Parent = parent
33
mesh.Scale = Vector3.new(x, y, z)
34
mesh.MeshType = type
35
end
36
using = false
37
sound = Instance.new("Sound",me.Character.Head)
38
sound.Volume = 0.6
39
sound.Pitch = 1
40
sound.SoundId = "rbxasset://sounds/uuhhh.wav"
41
bin.Selected:connect(function(mouse)
42
mouse.Button1Down:connect(function()
43
if using then return end
44
using = true
45
local blagh = Instance.new("Model",me.Character)
46
blagh.Name = "LAZOR"
47
local paw = mouse.Hit.p
48
local pa1 = Instance.new("Part")
49
prop(pa1,blagh,false,0,0,1,1,1,"Really black")
50
local m1 = Instance.new("SpecialMesh")
51
mesh(m1, pa1, 1.07,1,0.3,"Brick")
52
local w1 = Instance.new("Weld")
53
weld(w1, me.Character.Head, me.Character.Head, pa1, 0.4, 0, 0, 0, -0.4, 0.9)
54
local pa2 = pa1:clone()
55
prop(pa2,blagh,false,0,0,1,1,1,"Really black")
56
local w2 = Instance.new("Weld")
57
weld(w2, me.Character.Head, me.Character.Head, pa2, -0.4, 0, 0, 0, 0.4, 0.9)
58
local pa3 = Instance.new("Part")
59
prop(pa3,blagh,false,0,0,1,1,1,"Really red")
60
local m3 = Instance.new("SpecialMesh")
61
mesh(m3,pa3,1.3,1.23,0.29,"Brick")
62
local w3 = Instance.new("Weld")
63
weld(w3, me.Character.Head, me.Character.Head, pa3, 0.4, 0, 0, 0, -0.4, 0.9)
64
local pa4 = pa3:clone()
65
prop(pa4,blagh,false,0,0,1,1,1,"Really red")
66
local w4 = Instance.new("Weld")
67
weld(w4, me.Character.Head, me.Character.Head, pa4, -0.4, 0, 0, 0, 0.4, 0.9)
68
local eye1a = Instance.new("Part")
69
prop(eye1a,blagh,false,0,0,1,1,1,"Institutional white")
70
eye1a.Shape = "Ball"
71
local emesh1 = Instance.new("SpecialMesh")
72
mesh(emesh1,eye1a,0.75,0.75,0.75,"Sphere")
73
local ew = Instance.new("Weld")
74
weld(ew, me.Character.Head, me.Character.Head, eye1a, 0, 0, 0, 0.45, -1.3, 1.1)
75
local eye1b = Instance.new("Part")
76
prop(eye1b,blagh,false,0,0,1,1,1,"Really black")
77
eye1b.Shape = "Ball"
78
local emesh1b = Instance.new("SpecialMesh")
79
mesh(emesh1b,eye1b,0.4,0.4,0.4,"Sphere")
80
local ew2 = Instance.new("Weld")
81
weld(ew2, eye1a, eye1a, eye1b, 0, 0, 0, 0.09, -0.04, 0.2)
82
local eye2a = eye1a:clone()
83
prop(eye2a,blagh,false,0,0,1,1,1,"Institutional white")
84
local ew3 = Instance.new("Weld")
85
weld(ew3, me.Character.Head, me.Character.Head, eye2a, 0, 0, 0, -0.45, -1.3, 1.1)
86
local eye2b = eye1b:clone()
87
prop(eye2b,blagh,false,0,0,1,1,1,"Really black")
88
local ew5 = Instance.new("Weld")
89
weld(ew5, eye2a, eye2a, eye2b, 0, 0, 0, -0.05, 0.07, 0.2)
90
local bill = Instance.new("BillboardGui",pa1)
91
bill.Adornee = bill.Parent
92
bill.Size = UDim2.new(0,150,0,80)
93
local txt = Instance.new("TextLabel",bill)
94
txt.Size = UDim2.new(0,0,0,0)
95
txt.Position = UDim2.new(0,100,0,-20)
96
txt.Text = "IMA FIRIN' MAH LAZORR!!"
97
txt.FontSize = "Size24"
98
txt.TextColor3 = Color3.new(0,0,0)
99
sound.Volume = 0.6
100
for i=1, 5 do
101
sound.Pitch = math.random(400,900)/1000
102
sound:play()
103
wait(0.1)
104
end
105
local bg = Instance.new("BodyGyro",me.Character.Torso)
106
bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
107
bg.cframe = CFrame.new(me.Character.Torso.Position, paw)
108
for i=1, 5 do
109
sound.Pitch = math.random(400,900)/1000
110
sound:play()
111
wait(0.2)
112
end
113
txt.Text = "BLAARGHH!!!!!!"
114
sound.Volume = 0.85
115
for i=1, 60 do
116
local dist = (me.Character.Head.Position - paw).magnitude
117
if dist >= 600 then
118
dist = 600
119
end
120
bg.cframe = CFrame.new(me.Character.Torso.Position, paw)
121
sound.Pitch = math.random(550,750)/1000
122
sound:play()
123
local bewm = Instance.new("Part")
124
prop(bewm, blagh, false, 0.4, 0.25, 1, 1, dist, "Cyan")
125
bewm.Anchored = true
126
local mes = Instance.new("SpecialMesh")
127
mesh(mes,bewm,1.2,1.2,1,"Brick")
128
bewm.CFrame = CFrame.new(me.Character.Head.Position, paw) * CFrame.new(0,0,-bewm.Size.Z/2) * CFrame.new(0,0,-1)
129
local luck = math.random(1,3)
130
if luck == 1 then
131
local cfr = Instance.new("Part",blagh)
132
cfr.Size = Vector3.new(1,1,1)
133
cfr.Transparency = 1
134
cfr.Anchored = true
135
cfr.CFrame = bewm.CFrame * CFrame.new(0,0,-bewm.Size.Z/2)
136
local ex = Instance.new("Explosion")
137
ex.Parent = blagh
138
ex.Position = cfr.Position
139
ex.BlastRadius = 9
140
ex.BlastPressure = 400000
141
ex.Hit:connect(function(part)
142
if part:GetMass() < 240 then
143
part.Anchored = false
144
part:BreakJoints()
145
end
146
end)
147
end
148
wait()
149
bewm:remove()
150
end
151
blagh:remove()
152
bg:remove()
153
using = false
154
end)
155
end)