Advertisement
Surrealism

Untitled

Nov 23rd, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  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={},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
  6. --Converted with ttyyuu12345's model to script plugin v4
  7. function sandbox(var,func)
  8. local env = getfenv(func)
  9. local newenv = setmetatable({},{
  10. __index = function(self,k)
  11. if k=="script" then
  12. return var
  13. else
  14. return env[k]
  15. end
  16. end,
  17. })
  18. setfenv(func,newenv)
  19. return func
  20. end
  21. cors = {}
  22. mas = Instance.new("Model",game:GetService("Lighting"))
  23. Tool0 = Instance.new("Tool")
  24. UnionOperation1 = Instance.new("UnionOperation")
  25. ParticleEmitter2 = Instance.new("ParticleEmitter")
  26. ParticleEmitter3 = Instance.new("ParticleEmitter")
  27. ParticleEmitter4 = Instance.new("ParticleEmitter")
  28. ParticleEmitter5 = Instance.new("ParticleEmitter")
  29. Part6 = Instance.new("Part")
  30. SpecialMesh7 = Instance.new("SpecialMesh")
  31. Sound8 = Instance.new("Sound")
  32. Part9 = Instance.new("Part")
  33. SpecialMesh10 = Instance.new("SpecialMesh")
  34. Sound11 = Instance.new("Sound")
  35. Script12 = Instance.new("Script")
  36. Script13 = Instance.new("Script")
  37. LocalScript14 = Instance.new("LocalScript")
  38. Tool0.Name = "Apple of Eden"
  39. Tool0.Parent = mas
  40. Tool0.Grip = CFrame.new(0, 0, 0.300000012, 0.89442718, 0, -0.44721359, 0, 1, 0, 0.44721359, -0, 0.89442718)
  41. Tool0.GripForward = Vector3.new(0.44721359, -0, -0.89442718)
  42. Tool0.GripPos = Vector3.new(0, 0, 0.300000012)
  43. Tool0.GripRight = Vector3.new(0.89442718, 0, 0.44721359)
  44. Tool0.ToolTip = "Unmeasurable Power in the form of an Apple"
  45. UnionOperation1.Name = "Apple"
  46. UnionOperation1.Parent = Tool0
  47. UnionOperation1.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  48. UnionOperation1.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
  49. UnionOperation1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  50. UnionOperation1.Size = Vector3.new(0.993667603, 1.00000012, 0.998377323)
  51. UnionOperation1.Anchored = true
  52. UnionOperation1.BrickColor = BrickColor.new("Bright yellow")
  53. UnionOperation1.CanCollide = false
  54. UnionOperation1.Material = Enum.Material.SmoothPlastic
  55. UnionOperation1.Reflectance = 0.15000000596046
  56. UnionOperation1.brickColor = BrickColor.new("Bright yellow")
  57. ParticleEmitter2.Name = "Bubble"
  58. ParticleEmitter2.Parent = UnionOperation1
  59. ParticleEmitter2.Speed = NumberRange.new(0, 0)
  60. ParticleEmitter2.Rotation = NumberRange.new(-180, 180)
  61. ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.815686, 0.254902),Color3.new(1, 1, 1))
  62. ParticleEmitter2.LightEmission = 1
  63. ParticleEmitter2.Texture = "rbxassetid://1084955488"
  64. ParticleEmitter2.Transparency = NumberSequence.new(1,0.69999998807907,1)
  65. ParticleEmitter2.ZOffset = 3
  66. ParticleEmitter2.Size = NumberSequence.new(4,6,10)
  67. ParticleEmitter2.Lifetime = NumberRange.new(1, 1)
  68. ParticleEmitter2.LockedToPart = true
  69. ParticleEmitter2.Rate = 6
  70. ParticleEmitter3.Name = "Rays"
  71. ParticleEmitter3.Parent = UnionOperation1
  72. ParticleEmitter3.Speed = NumberRange.new(0, 0)
  73. ParticleEmitter3.Rotation = NumberRange.new(120, 240)
  74. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
  75. ParticleEmitter3.LightEmission = 1
  76. ParticleEmitter3.Texture = "rbxassetid://1053548563"
  77. 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)
  78. ParticleEmitter3.Size = NumberSequence.new(0,5.4999995231628)
  79. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  80. ParticleEmitter3.LockedToPart = true
  81. ParticleEmitter3.Rate = 4
  82. ParticleEmitter3.RotSpeed = NumberRange.new(-15, 15)
  83. ParticleEmitter4.Name = "Glow"
  84. ParticleEmitter4.Parent = UnionOperation1
  85. ParticleEmitter4.Speed = NumberRange.new(0, 0)
  86. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
  87. ParticleEmitter4.LightEmission = 1
  88. ParticleEmitter4.Texture = "rbxassetid://867619398"
  89. ParticleEmitter4.Transparency = NumberSequence.new(1,0.69999998807907,1)
  90. ParticleEmitter4.Size = NumberSequence.new(3,3)
  91. ParticleEmitter4.Lifetime = NumberRange.new(1, 1)
  92. ParticleEmitter4.LockedToPart = true
  93. ParticleEmitter4.Rate = 4
  94. ParticleEmitter5.Name = "Rays"
  95. ParticleEmitter5.Parent = UnionOperation1
  96. ParticleEmitter5.Speed = NumberRange.new(0, 0)
  97. ParticleEmitter5.Rotation = NumberRange.new(-180, 180)
  98. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
  99. ParticleEmitter5.LightEmission = 1
  100. ParticleEmitter5.Texture = "rbxassetid://1084975295"
  101. ParticleEmitter5.Transparency = NumberSequence.new(1,0.69999998807907,1)
  102. 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)
  103. ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
  104. ParticleEmitter5.LockedToPart = true
  105. ParticleEmitter5.Rate = 4
  106. ParticleEmitter5.RotSpeed = NumberRange.new(-50, 50)
  107. Part6.Name = "Handle"
  108. Part6.Parent = Tool0
  109. Part6.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  110. Part6.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
  111. Part6.Color = Color3.new(0.960784, 0.803922, 0.188235)
  112. Part6.Size = Vector3.new(0.949999988, 0.949999988, 0.949999988)
  113. Part6.Anchored = true
  114. Part6.BottomSurface = Enum.SurfaceType.Smooth
  115. Part6.BrickColor = BrickColor.new("Bright yellow")
  116. Part6.CanCollide = false
  117. Part6.Material = Enum.Material.Neon
  118. Part6.TopSurface = Enum.SurfaceType.Smooth
  119. Part6.brickColor = BrickColor.new("Bright yellow")
  120. Part6.FormFactor = Enum.FormFactor.Custom
  121. Part6.formFactor = Enum.FormFactor.Custom
  122. SpecialMesh7.Parent = Part6
  123. SpecialMesh7.MeshType = Enum.MeshType.Sphere
  124. Sound8.Parent = Part6
  125. Sound8.SoundId = "http://www.roblox.com/asset/?id= 2974000"
  126. Part9.Name = "Core"
  127. Part9.Parent = Tool0
  128. Part9.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  129. Part9.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
  130. Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
  131. Part9.Size = Vector3.new(0.949999988, 0.949999988, 0.949999988)
  132. Part9.Anchored = true
  133. Part9.BottomSurface = Enum.SurfaceType.Smooth
  134. Part9.BrickColor = BrickColor.new("Bright yellow")
  135. Part9.CanCollide = false
  136. Part9.Material = Enum.Material.Neon
  137. Part9.TopSurface = Enum.SurfaceType.Smooth
  138. Part9.brickColor = BrickColor.new("Bright yellow")
  139. Part9.FormFactor = Enum.FormFactor.Custom
  140. Part9.formFactor = Enum.FormFactor.Custom
  141. SpecialMesh10.Parent = Part9
  142. SpecialMesh10.MeshType = Enum.MeshType.Sphere
  143. Sound11.Parent = Part9
  144. Sound11.SoundId = "http://www.roblox.com/asset/?id= 2974000"
  145. Script12.Name = "Weld"
  146. Script12.Parent = Tool0
  147. table.insert(cors,sandbox(Script12,function()
  148. function weld()
  149. local parts,last = {}
  150. local function scan(parent)
  151. for _,v in pairs(parent:GetChildren()) do
  152. if (v:IsA("BasePart")) then
  153. if (last) then
  154. local w = Instance.new("Weld")
  155. w.Name = ("%s_Weld"):format(v.Name)
  156. w.Part0,w.Part1 = last,v
  157. w.C0 = last.CFrame:inverse()
  158. w.C1 = v.CFrame:inverse()
  159. w.Parent = last
  160. end
  161. last = v
  162. table.insert(parts,v)
  163. end
  164. scan(v)
  165. end
  166. end
  167. scan(script.Parent)
  168. for _,v in pairs(parts) do
  169. v.Anchored = false
  170. end
  171. end
  172.  
  173. weld()
  174. script:Remove()
  175. end))
  176. Script13.Name = "MindCraze"
  177. Script13.Parent = Tool0
  178. table.insert(cors,sandbox(Script13,function()
  179. local character = script.Parent
  180. if character:findFirstChild("Animate") then
  181. character.Animate:remove()
  182. else
  183. end
  184.  
  185. character.Humanoid.PlatformStand = true
  186.  
  187. while true do
  188. wait(0.1)
  189. character.Torso["Right Shoulder"].MaxVelocity = 0.8
  190. character.Torso["Right Shoulder"].DesiredAngle = math.random(-2,2)
  191. character.Torso["Left Shoulder"].MaxVelocity = 0.8
  192. character.Torso["Left Shoulder"].DesiredAngle = math.random(-2,2)
  193. character.Torso["Left Hip"].MaxVelocity = 0.8
  194. character.Torso["Right Hip"].DesiredAngle = math.random(-2,2)
  195. character.Torso["Neck"].MaxVelocity = 0.8
  196. character.Torso["Neck"].DesiredAngle = math.random(-2,2)
  197.  
  198. local e = math.random(0,5)
  199. character.Humanoid.Health = character.Humanoid.Health - e
  200.  
  201.  
  202.  
  203. end
  204. end))
  205. LocalScript14.Name = "Local Gui"
  206. LocalScript14.Parent = Tool0
  207. table.insert(cors,sandbox(LocalScript14,function()
  208. local Tool = script.Parent;
  209. local ven = false
  210. local mesh = Tool.Handle.Mesh
  211. local dis = 0
  212. enabled = true
  213. function onActivated()
  214. ven = true
  215. mesh.Parent.Transparency = 0.4
  216. while ven == true do
  217. wait(0.01)
  218. mesh.Scale = mesh.Scale - Vector3.new(1,1,1)
  219.  
  220. dis = dis + 1
  221. end
  222.  
  223. end
  224.  
  225. function onDeactivated()
  226. Tool.Handle.Sound:play()
  227. mesh.Parent.Transparency = 0
  228. ye = math.floor(dis/5)
  229. while ye > 0 do
  230. wait(0.01)
  231. ye = ye - 1
  232. mesh.Scale = mesh.Scale + Vector3.new(5,5,5)
  233. end
  234. ven = false
  235.  
  236.  
  237.  
  238. z = game.Workspace:GetChildren()
  239. for i= 1, #z do
  240. 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
  241. local e = Tool.MindCraze:clone()
  242. e:clone().Parent = z[i]
  243.  
  244. else
  245. end
  246. end
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255. wait(0.1)
  256. mesh.Parent.Transparency = 0.001
  257. mesh.Scale = Vector3.new(1,1,1)
  258.  
  259. dis = 0
  260. end
  261.  
  262. function onEquippedLocal(mouse)
  263.  
  264. if mouse == nil then
  265. print("Mouse not found")
  266. return
  267. end
  268.  
  269. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  270. end
  271.  
  272.  
  273. Tool.Equipped:connect(onEquippedLocal)
  274. script.Parent.Activated:connect(onActivated)
  275. script.Parent.Deactivated:connect(onDeactivated)
  276.  
  277. end))
  278. for i,v in pairs(mas:GetChildren()) do
  279. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  280. pcall(function() v:MakeJoints() end)
  281. end
  282. mas:Destroy()
  283. for i,v in pairs(cors) do
  284. spawn(function()
  285. pcall(v)
  286. end)
  287. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement