Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- UnionOperation1 = Instance.new("UnionOperation")
- ParticleEmitter2 = Instance.new("ParticleEmitter")
- ParticleEmitter3 = Instance.new("ParticleEmitter")
- ParticleEmitter4 = Instance.new("ParticleEmitter")
- ParticleEmitter5 = Instance.new("ParticleEmitter")
- Part6 = Instance.new("Part")
- SpecialMesh7 = Instance.new("SpecialMesh")
- Sound8 = Instance.new("Sound")
- Part9 = Instance.new("Part")
- SpecialMesh10 = Instance.new("SpecialMesh")
- Sound11 = Instance.new("Sound")
- Script12 = Instance.new("Script")
- Script13 = Instance.new("Script")
- LocalScript14 = Instance.new("LocalScript")
- Tool0.Name = "Apple of Eden"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(0, 0, 0.300000012, 0.89442718, 0, -0.44721359, 0, 1, 0, 0.44721359, -0, 0.89442718)
- Tool0.GripForward = Vector3.new(0.44721359, -0, -0.89442718)
- Tool0.GripPos = Vector3.new(0, 0, 0.300000012)
- Tool0.GripRight = Vector3.new(0.89442718, 0, 0.44721359)
- Tool0.ToolTip = "Unmeasurable Power in the form of an Apple"
- UnionOperation1.Name = "Apple"
- UnionOperation1.Parent = Tool0
- UnionOperation1.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation1.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
- UnionOperation1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- UnionOperation1.Size = Vector3.new(0.993667603, 1.00000012, 0.998377323)
- UnionOperation1.Anchored = true
- UnionOperation1.BrickColor = BrickColor.new("Bright yellow")
- UnionOperation1.CanCollide = false
- UnionOperation1.Material = Enum.Material.SmoothPlastic
- UnionOperation1.Reflectance = 0.15000000596046
- UnionOperation1.brickColor = BrickColor.new("Bright yellow")
- ParticleEmitter2.Name = "Bubble"
- ParticleEmitter2.Parent = UnionOperation1
- ParticleEmitter2.Speed = NumberRange.new(0, 0)
- ParticleEmitter2.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.815686, 0.254902),Color3.new(1, 1, 1))
- ParticleEmitter2.LightEmission = 1
- ParticleEmitter2.Texture = "rbxassetid://1084955488"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.69999998807907,1)
- ParticleEmitter2.ZOffset = 3
- ParticleEmitter2.Size = NumberSequence.new(4,6,10)
- ParticleEmitter2.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter2.LockedToPart = true
- ParticleEmitter2.Rate = 6
- ParticleEmitter3.Name = "Rays"
- ParticleEmitter3.Parent = UnionOperation1
- ParticleEmitter3.Speed = NumberRange.new(0, 0)
- ParticleEmitter3.Rotation = NumberRange.new(120, 240)
- ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
- ParticleEmitter3.LightEmission = 1
- ParticleEmitter3.Texture = "rbxassetid://1053548563"
- ParticleEmitter3.Transparency = NumberSequence.new(0,5.2658066351796e-07,1.6850581232575e-05,0.00012795910879504,0.00053921859944239,0.0016455645672977,0.0040946914814413,0.0088502410799265,0.017254995182157,0.031094063073397,0.052658066153526,0.084806345403194,0.13103012740612,0.19551572203636,0.28320771455765,0.39987221360207,0.55215984582901,0.74766927957535,0.99501001834869,1)
- ParticleEmitter3.Size = NumberSequence.new(0,5.4999995231628)
- ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter3.LockedToPart = true
- ParticleEmitter3.Rate = 4
- ParticleEmitter3.RotSpeed = NumberRange.new(-15, 15)
- ParticleEmitter4.Name = "Glow"
- ParticleEmitter4.Parent = UnionOperation1
- ParticleEmitter4.Speed = NumberRange.new(0, 0)
- ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
- ParticleEmitter4.LightEmission = 1
- ParticleEmitter4.Texture = "rbxassetid://867619398"
- ParticleEmitter4.Transparency = NumberSequence.new(1,0.69999998807907,1)
- ParticleEmitter4.Size = NumberSequence.new(3,3)
- ParticleEmitter4.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter4.LockedToPart = true
- ParticleEmitter4.Rate = 4
- ParticleEmitter5.Name = "Rays"
- ParticleEmitter5.Parent = UnionOperation1
- ParticleEmitter5.Speed = NumberRange.new(0, 0)
- ParticleEmitter5.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.Texture = "rbxassetid://1084975295"
- ParticleEmitter5.Transparency = NumberSequence.new(1,0.69999998807907,1)
- ParticleEmitter5.Size = NumberSequence.new(0,1.2418006658554,2.2236206531525,2.9886019229889,3.5748257637024,4.0156278610229,4.339916229248,4.5724840164185,4.7343292236328,4.8429670333862,4.9127492904663,4.9551763534546,4.9792170524597,4.9916229248047,4.9972424507141,4.9993405342102,4.9999117851257,4.9999971389771,5,5)
- ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter5.LockedToPart = true
- ParticleEmitter5.Rate = 4
- ParticleEmitter5.RotSpeed = NumberRange.new(-50, 50)
- Part6.Name = "Handle"
- Part6.Parent = Tool0
- Part6.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
- Part6.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part6.Size = Vector3.new(0.949999988, 0.949999988, 0.949999988)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Bright yellow")
- Part6.CanCollide = false
- Part6.Material = Enum.Material.Neon
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Bright yellow")
- Part6.FormFactor = Enum.FormFactor.Custom
- Part6.formFactor = Enum.FormFactor.Custom
- SpecialMesh7.Parent = Part6
- SpecialMesh7.MeshType = Enum.MeshType.Sphere
- Sound8.Parent = Part6
- Sound8.SoundId = "http://www.roblox.com/asset/?id= 2974000"
- Part9.Name = "Core"
- Part9.Parent = Tool0
- Part9.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
- Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part9.Size = Vector3.new(0.949999988, 0.949999988, 0.949999988)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Bright yellow")
- Part9.CanCollide = false
- Part9.Material = Enum.Material.Neon
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Bright yellow")
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshType = Enum.MeshType.Sphere
- Sound11.Parent = Part9
- Sound11.SoundId = "http://www.roblox.com/asset/?id= 2974000"
- Script12.Name = "Weld"
- Script12.Parent = Tool0
- table.insert(cors,sandbox(Script12,function()
- function weld()
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(script.Parent)
- for _,v in pairs(parts) do
- v.Anchored = false
- end
- end
- weld()
- script:Remove()
- end))
- Script13.Name = "MindCraze"
- Script13.Parent = Tool0
- table.insert(cors,sandbox(Script13,function()
- local character = script.Parent
- if character:findFirstChild("Animate") then
- character.Animate:remove()
- else
- end
- character.Humanoid.PlatformStand = true
- while true do
- wait(0.1)
- character.Torso["Right Shoulder"].MaxVelocity = 0.8
- character.Torso["Right Shoulder"].DesiredAngle = math.random(-2,2)
- character.Torso["Left Shoulder"].MaxVelocity = 0.8
- character.Torso["Left Shoulder"].DesiredAngle = math.random(-2,2)
- character.Torso["Left Hip"].MaxVelocity = 0.8
- character.Torso["Right Hip"].DesiredAngle = math.random(-2,2)
- character.Torso["Neck"].MaxVelocity = 0.8
- character.Torso["Neck"].DesiredAngle = math.random(-2,2)
- local e = math.random(0,5)
- character.Humanoid.Health = character.Humanoid.Health - e
- end
- end))
- LocalScript14.Name = "Local Gui"
- LocalScript14.Parent = Tool0
- table.insert(cors,sandbox(LocalScript14,function()
- local Tool = script.Parent;
- local ven = false
- local mesh = Tool.Handle.Mesh
- local dis = 0
- enabled = true
- function onActivated()
- ven = true
- mesh.Parent.Transparency = 0.4
- while ven == true do
- wait(0.01)
- mesh.Scale = mesh.Scale - Vector3.new(1,1,1)
- dis = dis + 1
- end
- end
- function onDeactivated()
- Tool.Handle.Sound:play()
- mesh.Parent.Transparency = 0
- ye = math.floor(dis/5)
- while ye > 0 do
- wait(0.01)
- ye = ye - 1
- mesh.Scale = mesh.Scale + Vector3.new(5,5,5)
- end
- ven = false
- z = game.Workspace:GetChildren()
- for i= 1, #z do
- if z[i]:findFirstChild("Humanoid") and z[i].Humanoid ~= Tool.Parent.Humanoid and z[i]:findFirstChild("Animate") and z[i]:findFirstChild("Torso") and (z[i].Torso.Position - Tool.Parent.Torso.Position).magnitude < dis/2 then
- local e = Tool.MindCraze:clone()
- e:clone().Parent = z[i]
- else
- end
- end
- wait(0.1)
- mesh.Parent.Transparency = 0.001
- mesh.Scale = Vector3.new(1,1,1)
- dis = 0
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- Tool.Equipped:connect(onEquippedLocal)
- script.Parent.Activated:connect(onActivated)
- script.Parent.Deactivated:connect(onDeactivated)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement