BobMe

servervr - void

May 15th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.18 KB | None | 0 0
  1. local player = game.Players:WaitForChild("Memo1332") -- put your name here!
  2. local size = 1
  3. --
  4. local character = workspace:WaitForChild(player.Name)
  5. character.Head.Anchored = true
  6. character.Humanoid.MaxHealth = math.huge
  7. character.Humanoid.Health = math.huge
  8. character.Humanoid.BreakJointsOnDeath = false
  9. character.Humanoid.Name = "sbfkjwbjhgfsbejkfggbnkshrgbksgjksbherk"
  10. wait(.5)
  11. --workspace:WaitForChild(player.Name).Parent = nil
  12. local data = Instance.new("RemoteEvent",player)
  13. data.Name = "VrC"
  14. local modr = 0
  15.  
  16. local lh = Instance.new("Part",workspace)
  17. lh.Locked = true
  18. lh.Transparency = 0
  19. lh.Name = player.Name.."-LeftHand"
  20. lh.Material = "Metal"
  21. lh.Color = Color3.fromRGB(255,100,255)
  22. lh.CanCollide = true
  23. lh.Anchored = true
  24. local rh = Instance.new("Part",workspace)
  25. rh.Locked = true
  26. rh.Transparency = 0
  27. rh.Name = player.Name.."-RightHand"
  28. rh.Material = "Metal"
  29. rh.Color = Color3.fromRGB(255,100,255)
  30. rh.CanCollide = true
  31. rh.Anchored = true
  32. local he = Instance.new("Part",workspace)
  33. he.CanCollide = true
  34. he.Name = player.Name.."-Head"
  35. he.Color = Color3.fromRGB(255,175,255)
  36. he.Material = "Metal"
  37. he.Transparency = 0
  38. he.Anchored = true
  39. he.Locked = true
  40. local mesh = Instance.new("SpecialMesh",he)
  41. mesh.MeshType = Enum.MeshType.Head
  42. mesh.Scale = Vector3.new(1.25,1.25,1.25)
  43. local face = Instance.new("Decal",he)
  44. face.Face = "Front"
  45. face.Texture = "http://www.roblox.com/asset/?id=144080495"
  46.  
  47.  
  48. function charge(rol)
  49. local bap = lh
  50. if rol == "right" then bap = rh end
  51. if bap:FindFirstChild("Charge") == nil then
  52. local chargeparticle = Instance.new("ParticleEmitter",bap)
  53. chargeparticle.Name = "Charge"
  54. chargeparticle.Speed = NumberRange.new(40*size, 40*size)
  55. chargeparticle.Color = ColorSequence.new(Color3.new(0.933333, 0, 1),Color3.new(0.933333, 0, 1))
  56. chargeparticle.LightEmission = 1
  57. chargeparticle.Texture = "rbxassetid://1280736246"
  58. chargeparticle.Transparency = NumberSequence.new(0,0,0.72500002384186)
  59. chargeparticle.Size = NumberSequence.new(0.6*size,0.6*size)
  60. chargeparticle.Drag = 8
  61. chargeparticle.EmissionDirection = Enum.NormalId.Back
  62. chargeparticle.Lifetime = NumberRange.new(0.20000000298023, 0.40000000596046)
  63. chargeparticle.LockedToPart = true
  64. chargeparticle.Rate = 100
  65. chargeparticle.SpreadAngle = Vector2.new(20, 20)
  66. chargeparticle.VelocitySpread = 20
  67. chargeparticle.Enabled = true
  68. else
  69. local chargeparticle = bap:FindFirstChild("Charge")
  70. chargeparticle.Speed = NumberRange.new(20*size, 20*size)
  71. chargeparticle.Size = NumberSequence.new(0.6*size,0.6*size)
  72. chargeparticle.Enabled = true
  73. end
  74. if bap:FindFirstChild("chargsound") == nil then
  75. local sound = Instance.new("Sound",bap)
  76. sound.Name = "chargsound"
  77. sound.Volume = 3
  78. sound.SoundId = "rbxassetid://255679384"
  79. sound.PlaybackSpeed = 0.67
  80. sound.MaxDistance = 10000*size
  81. sound.EmitterSize = 5*size
  82. sound:Play()
  83. else
  84. local sound = bap:FindFirstChild("chargsound")
  85. sound:Play()
  86. end
  87. end
  88.  
  89. g = Instance.new("Part")
  90. SpecialMesh1 = Instance.new("SpecialMesh")
  91. ParticleEmitter2 = Instance.new("ParticleEmitter")
  92. g.CFrame = CFrame.new(-45.3979988, 2.57392263, 216.870453, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  93. g.Position = Vector3.new(-45.3979988, 2.57392263, 216.870453)
  94. g.Color = Color3.new(1, 0.34902, 0.94902)
  95. g.Size = Vector3.new(4.5, 4.5, 9)
  96. g.Massless = true
  97. g.BottomSurface = Enum.SurfaceType.Smooth
  98. g.BrickColor = BrickColor.new("Pink")
  99. g.Material = Enum.Material.Neon
  100. g.TopSurface = Enum.SurfaceType.Smooth
  101. g.brickColor = BrickColor.new("Pink")
  102. SpecialMesh1.Parent = g
  103. SpecialMesh1.MeshType = Enum.MeshType.Sphere
  104. ParticleEmitter2.Parent = g
  105. ParticleEmitter2.Name = "bonk"
  106. ParticleEmitter2.Speed = NumberRange.new(100, 100)
  107. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.933333, 0, 1),Color3.new(0.933333, 0, 1))
  108. ParticleEmitter2.LightEmission = 1
  109. ParticleEmitter2.Texture = "rbxassetid://1280736246"
  110. ParticleEmitter2.Transparency = NumberSequence.new(0,0,0.72500002384186)
  111. ParticleEmitter2.Size = NumberSequence.new(2,2)
  112. ParticleEmitter2.EmissionDirection = Enum.NormalId.Back
  113. ParticleEmitter2.Lifetime = NumberRange.new(0.20000000298023, 0.40000000596046)
  114. ParticleEmitter2.LockedToPart = true
  115. ParticleEmitter2.Rate = 100
  116.  
  117. local e = Instance.new("Part")
  118. SpecialMesh2 = Instance.new("SpecialMesh")
  119. SpecialMesh2.Parent = e
  120. SpecialMesh2.MeshType = Enum.MeshType.Sphere
  121. e.Size = Vector3.new(17.65,17.65,17.65)
  122. e.Color = Color3.fromRGB(255,100,255)
  123. e.Material = "Neon"
  124. e.Transparency = 0.5
  125. e.CanCollide = false
  126. e.Anchored = true
  127.  
  128. function weld(part1,part2)
  129. if part1 ~= nil and part2 ~= nil then
  130. local w = Instance.new("Weld")
  131. w.Name = "fatweld"
  132. w.Part0,w.Part1 = part1,part2
  133. w.C0 = part1.CFrame:inverse()
  134. w.C1 = part2.CFrame:inverse()
  135. w.Parent = part1
  136. end
  137. end
  138.  
  139.  
  140. function shoot(rol,cf)
  141. coroutine.resume(coroutine.create(function()
  142. local bap = lh
  143. local size = size
  144. if rol == "right" then bap = rh end
  145. if bap:FindFirstChild("chargsound") ~= nil then
  146. bap:FindFirstChild("chargsound").Playing = false
  147. end
  148. if bap:FindFirstChild("Charge") ~= nil then
  149. bap:FindFirstChild("Charge").Enabled = false
  150. end
  151.  
  152. local part1 = bap
  153. local part2 = Instance.new("Part",workspace)
  154. local k = g:Clone()
  155. k.Size = Vector3.new((4.5*size)/5, (4.5*size)/5, (9*size)/5)
  156. local kk = Instance.new("BodyGyro",k)
  157. local f = e:Clone()
  158. f.Size = Vector3.new((17.65*size)/4,(17.65*size)/4,(17.65*size)/4)
  159. local ff = e:Clone()
  160. ff.Size = Vector3.new((17.65*size)/4,(17.65*size)/4,(17.65*size)/4)
  161. local kek = false
  162. part2.Transparency = 1
  163. part2.CanCollide = false
  164. part2.Anchored = true
  165. part2.Size = Vector3.new(0.25,0.25,0.25)
  166. part2.CFrame = cf * CFrame.new(0,0,-3*40)
  167. k.bonk.Size = NumberSequence.new((2*size)/5,(2*size)/5)
  168. k.bonk.Speed = NumberRange.new((100*size)/5,(100*size)/5)
  169.  
  170. local vec3 = part2.Position - cf.p
  171.  
  172. local bod = Instance.new("BodyVelocity",k)
  173. bod.MaxForce = Vector3.new(1000000*size,1000000*size,1000000*size)
  174. bod.Velocity = vec3 * Vector3.new(size/4,size/4,size/4)
  175. k.CFrame = cf * CFrame.new(0,0,-1*size)
  176. kk.MaxTorque = Vector3.new(40000000, 40000000, 40000000)
  177. kk.cframe = k.CFrame
  178. k.Parent = workspace
  179.  
  180. if bap:FindFirstChild("Shoot") == nil then
  181. local soun = Instance.new("Sound",bap)
  182. soun.SoundId = "rbxassetid://743499393"
  183. soun.Volume = 3
  184. soun.EmitterSize = (10/5)*size
  185. soun.MaxDistance = 10000*size
  186. soun.PlaybackSpeed = 0.76
  187. soun:Play()
  188. else
  189. bap:FindFirstChild("Shoot").EmitterSize = (10/5)*size
  190. bap:FindFirstChild("Shoot").MaxDistance = 10000*size
  191. bap:FindFirstChild("Shoot"):Play()
  192. end
  193.  
  194. k.Touched:Connect(function(e)
  195. if e.Name ~= bap.Name and e.ClassName == "Part" and e.CanCollide == true then
  196. kek = true
  197. end
  198. end)
  199.  
  200. repeat wait(.1) until kek == true
  201.  
  202. k.Anchored = true
  203. k.Transparency = 1
  204. k.CanCollide = false
  205. k.bonk.Enabled = false
  206.  
  207. local soun = Instance.new("Sound",k)
  208. soun.SoundId = "rbxassetid://440145223"
  209. soun.Volume = 3
  210. soun.PlaybackSpeed = 0.76
  211. soun.MaxDistance = 10000*size
  212. soun.EmitterSize = 10*size
  213. soun:Play()
  214.  
  215. f.Position = k.Position
  216. ff.Color = Color3.new(1,1,1)
  217. ff.Size = ff.Size / Vector3.new(1.5,1.5,1.5)
  218. ff.Position = f.Position
  219.  
  220. local exp = Instance.new("Explosion",workspace)
  221. exp.Position = k.Position
  222. exp.DestroyJointRadiusPercent = 0
  223. exp.BlastRadius = (14*size)/3
  224. exp.Visible = false
  225.  
  226. exp.Hit:Connect(function(part,dis)
  227. if part.Parent:FindFirstChildOfClass("Humanoid") and part.Parent:FindFirstChildOfClass("UpperTorso") == nil then
  228. part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - 7
  229. elseif part.Parent:FindFirstChildOfClass("Humanoid") ~= nil and part.Parent:FindFirstChildOfClass("UpperTorso") ~= nil then
  230. part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
  231. end
  232. end)
  233.  
  234. coroutine.resume(coroutine.create(function()
  235. f.Parent = workspace
  236. ff.Parent = workspace
  237. f.Transparency = 0.5
  238. ff.Transparency = 0.5
  239. for i=1,40 do
  240. wait()
  241. f.Transparency = f.Transparency + 0.0125
  242. f.Size = f.Size + Vector3.new((0.6*size)/4,(0.6*size)/4,(0.6*size)/4)
  243. ff.Transparency = ff.Transparency + 0.0125
  244. ff.Size = ff.Size + Vector3.new((0.6*size)/4,(0.6*size)/4,(0.6*size)/4)
  245. end
  246.  
  247. wait(.25)
  248.  
  249. f:Destroy()
  250. ff:Destroy()
  251. k:Destroy()
  252. part2:Destroy()
  253. end))
  254. end))
  255. end
  256.  
  257. function changeMode()
  258. if modr == 0 then
  259. lh.Color = Color3.fromRGB(255,100,255)
  260. rh.Color = Color3.fromRGB(255,100,255)
  261. elseif modr == 1 then
  262. lh.Anchored = false
  263. rh.Anchored = false
  264. lh.Color = Color3.fromRGB(100,100,255)
  265. rh.Color = Color3.fromRGB(100,100,255)
  266. elseif modr == 2 then
  267. lh.Color = Color3.fromRGB(255,100,100)
  268. rh.Color = Color3.fromRGB(255,100,100)
  269. touch(lh)
  270. touch(rh)
  271. elseif modr == 3 then
  272. lh.Color = Color3.fromRGB(100,255,100)
  273. rh.Color = Color3.fromRGB(100,255,100)
  274. elseif modr == 4 then
  275. lh.Color = Color3.fromRGB(255,255,100)
  276. rh.Color = Color3.fromRGB(255,255,100)
  277. lh.CanCollide = false
  278. rh.CanCollide = false
  279. he.CanCollide = false
  280. elseif modr == 5 then
  281. lh.Color = Color3.fromRGB(100,255,255)
  282. rh.Color = Color3.fromRGB(100,255,255)
  283. lh.Transparency = 1
  284. rh.Transparency = 1
  285. he.Transparency = 1
  286. end
  287. -- deactivation stuff
  288. if modr ~= 1 then
  289. local lh1 = lh:FindFirstChild("BodyPosition")
  290. local lh2 = lh:FindFirstChild("BodyGyro")
  291. local rh1 = rh:FindFirstChild("BodyPosition")
  292. local rh2 = rh:FindFirstChild("BodyGyro")
  293. if lh1 ~= nil then
  294. lh1:Destroy()
  295. end
  296. if lh2 ~= nil then
  297. lh2:Destroy()
  298. end
  299. if rh1 ~= nil then
  300. rh1:Destroy()
  301. end
  302. if rh2 ~= nil then
  303. rh2:Destroy()
  304. end
  305. lh.Anchored = true
  306. rh.Anchored = true
  307. wait()
  308. lh.Velocity = Vector3.new(0,0,0)
  309. rh.Velocity = Vector3.new(0,0,0)
  310. lh.RotVelocity = Vector3.new(0,0,0)
  311. rh.RotVelocity = Vector3.new(0,0,0)
  312. end
  313. if modr ~= 4 then
  314. lh.CanCollide = true
  315. rh.CanCollide = true
  316. he.CanCollide = true
  317. end
  318. if modr ~= 5 then
  319. lh.Transparency = 0
  320. rh.Transparency = 0
  321. he.Transparency = 0
  322. end
  323. end
  324.  
  325. data.OnServerEvent:Connect(function(plr,mode,dat)
  326. if plr.Name == player.Name then
  327. if mode == "start" then
  328. size = dat
  329. lh.Size = Vector3.new(0.2,0.2,0.6) * Vector3.new(size,size,size)
  330. rh.Size = Vector3.new(0.2,0.2,0.6) * Vector3.new(size,size,size)
  331. he.Size = Vector3.new(1,1,1) * Vector3.new(size,size,size)
  332. elseif mode == "update" then
  333. local lefthand = dat[1]
  334. local righthand = dat[2]
  335. local head = dat[3]
  336. size = dat[4]
  337. he.CFrame = he.CFrame:lerp(head,0.5)
  338. if modr ~= 1 then
  339. lh.CFrame = lh.CFrame:lerp(lefthand,0.5)
  340. rh.CFrame = rh.CFrame:lerp(righthand,0.5)
  341. elseif modr == 1 then
  342. local lh1 = lh:FindFirstChild("BodyPosition")
  343. local lh2 = lh:FindFirstChild("BodyGyro")
  344. local rh1 = rh:FindFirstChild("BodyPosition")
  345. local rh2 = rh:FindFirstChild("BodyGyro")
  346. if lh1 ~= nil and lh2 ~= nil and rh1 ~= nil and rh2 ~= nil then
  347. lh1.Position = lefthand.p
  348. lh2.CFrame = lefthand
  349. rh1.Position = righthand.p
  350. rh2.CFrame = righthand
  351. else
  352. if lh1 ~= nil then
  353. lh1:Destroy()
  354. end
  355. if lh2 ~= nil then
  356. lh2:Destroy()
  357. end
  358. if rh1 ~= nil then
  359. rh1:Destroy()
  360. end
  361. if rh2 ~= nil then
  362. rh2:Destroy()
  363. end
  364. local lh1 = Instance.new("BodyPosition",lh)
  365. local lh2 = Instance.new("BodyGyro",lh)
  366. lh1.MaxForce = Vector3.new(4000000*size,4000000*size,4000000*size)
  367. lh1.P = 150000
  368. lh1.D = 2250
  369. lh1.Position = lefthand.p
  370. lh2.MaxTorque = Vector3.new(40000000, 40000000, 40000000)
  371. lh2.P = 4000000
  372. lh2.D = 750
  373. lh2.CFrame = lefthand
  374. local rh1 = lh1:Clone()
  375. local rh2 = lh2:Clone()
  376. rh1.Parent = rh
  377. rh2.Parent = rh
  378. rh1.Position = righthand.p
  379. rh2.CFrame = righthand
  380. end
  381. elseif modr == 3 then
  382. local lx1 = lefthand.p.X
  383. local ly1 = lefthand.p.Y
  384. local lz1 = lefthand.p.Z
  385. local rx1 = righthand.p.X
  386. local ry1 = righthand.p.Y
  387. local rz1 = righthand.p.Z
  388. --
  389. local lx2 = lh.Position.X
  390. local ly2 = lh.Position.Y
  391. local lz2 = lh.Position.Z
  392. local rx2 = rh.Position.X
  393. local ry2 = rh.Position.Y
  394. local rz2 = rh.Position.Z
  395. --
  396. local orienlx1,orienly1,orienlz1 = lefthand:ToOrientation()
  397. orienlx1,orienly1,orienlz1 = math.deg(orienlx1),math.deg(orienly1),math.deg(orienlz1)
  398. local orienrx1,orienry1,orienrz1 = righthand:ToOrientation()
  399. orienrx1,orienry1,orienrz1 = math.deg(orienrx1),math.deg(orienry1),math.deg(orienrz1)
  400. --
  401. local orienlx2,orienly2,orienlz2 = lh.Orientation.X,lh.Orientation.Y,lh.Orientation.Z
  402. local orienrx2,orienry2,orienrz2 = rh.Orientation.X,rh.Orientation.Y,rh.Orientation.Z
  403. --
  404. rh.CFrame = righthand
  405. lh.CFrame = lefthand
  406. wait()
  407. rh.Velocity = Vector3.new(rx2-rx1,ry2-ry1,rz1-rz2)
  408. rh.RotVelocity = Vector3.new(orienrx2-orienrx1,orienry2-orienry1,orienrz2-orienrz1)
  409. lh.Velocity = Vector3.new(lx2-lx1,ly2-ly1,lz1-lz2)
  410. lh.RotVelocity = Vector3.new(orienlx2-orienlx1,orienly2-orienly1,orienlz2-orienlz1)
  411. end
  412. lh.Size = Vector3.new(0.2,0.2,0.6) * Vector3.new(size,size,size)
  413. rh.Size = Vector3.new(0.2,0.2,0.6) * Vector3.new(size,size,size)
  414. he.Size = Vector3.new(1,1,1) * Vector3.new(size,size,size)
  415. elseif mode == "chargeright" then
  416. charge("right")
  417. elseif mode == "chargeleft" then
  418. charge("left")
  419. elseif mode == "ShootRight" then
  420. local ray = dat[1]
  421. local cf = dat[2]
  422. shoot("right",cf)
  423. elseif mode == "ShootLeft" then
  424. local ray = dat[1]
  425. local cf = dat[2]
  426. shoot("left",cf)
  427. elseif mode == "mode" then
  428. modr = dat
  429. changeMode()
  430. elseif mode == "GrabRight" then
  431. weld(rh,dat[1])
  432. elseif mode == "GrabLeft" then
  433. weld(lh,dat[1])
  434. elseif mode == "UngrabRight" then
  435. while rh:FindFirstChild("fatweld") ~= nil do
  436. rh:FindFirstChild("fatweld"):Destroy()
  437. end
  438. elseif mode == "UngrabLeft" then
  439. while lh:FindFirstChild("fatweld") ~= nil do
  440. lh:FindFirstChild("fatweld"):Destroy()
  441. end
  442. end
  443. end
  444. end)
  445.  
  446. function touch(part)
  447. part.Touched:Connect(function(pa)
  448. if modr == 2 and tostring(pa) ~= "Base" and tostring(pa) ~= "Baseplate" then
  449. pa:Destroy()
  450. else
  451. return
  452. end
  453. end)
  454. end
  455.  
  456. game.Players.PlayerRemoving:Connect(function(play)
  457. if tostring(play) == tostring(player) then
  458. lh:Destroy()
  459. he:Destroy()
  460. rh:Destroy()
  461. script:Destroy()
  462. end
  463. end)
  464.  
  465. while wait(1) do
  466. if (he == nil or he.Parent == nil) or (rh == nil or rh.Parent == nil) or (lh == nil or lh.Parent == nil) then
  467. if he ~= nil or he.Parent == nil then he:Destroy() end
  468. if lh ~= nil or lh.Parent == nil then lh:Destroy() end
  469. if rh ~= nil or rh.Parent == nil then rh:Destroy() end
  470. lh = Instance.new("Part",workspace)
  471. lh.Transparency = 0
  472. lh.Locked = true
  473. lh.Name = player.Name.."-LeftHand"
  474. lh.Material = "Metal"
  475. lh.Color = Color3.fromRGB(255,100,255)
  476. lh.CanCollide = true
  477. lh.Anchored = true
  478. rh = Instance.new("Part",workspace)
  479. rh.Transparency = 0
  480. rh.Locked = true
  481. rh.Name = player.Name.."-RightHand"
  482. rh.Material = "Metal"
  483. rh.Color = Color3.fromRGB(255,100,255)
  484. rh.CanCollide = true
  485. rh.Anchored = true
  486. he = Instance.new("Part",workspace)
  487. he.CanCollide = true
  488. he.Name = player.Name.."-Head"
  489. he.Color = Color3.fromRGB(255,175,255)
  490. he.Locked = true
  491. he.Material = "Metal"
  492. he.Transparency = 0
  493. he.Anchored = true
  494. mesh = Instance.new("SpecialMesh",he)
  495. mesh.MeshType = Enum.MeshType.Head
  496. mesh.Scale = Vector3.new(1.25,1.25,1.25)
  497. face = Instance.new("Decal",he)
  498. face.Face = "Front"
  499. face.Texture = "http://www.roblox.com/asset/?id=144080495"
  500. if modr == 2 then
  501. touch(lh)
  502. touch(rh)
  503. end
  504. end
  505. local countup = 0
  506. for i,v in pairs(workspace:GetChildren()) do
  507. if v.Name == player.Name.."-Head" or v.Name == player.Name.."-RightHand" or v.Name == player.Name.."-LeftHand" then
  508. countup = countup + 1
  509. end
  510. end
  511. if countup > 3 then
  512. for i,v in pairs(workspace:GetChildren()) do
  513. if v.Name == player.Name.."-Head" or v.Name == player.Name.."-RightHand" or v.Name == player.Name.."-LeftHand" then
  514. v:Destroy()
  515. end
  516. end
  517. end
  518. end
Add Comment
Please, Sign In to add comment