Advertisement
refrop

test 3

Apr 27th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. --fixed by Scenius
  2. plr = game.Players.LocalPlayer
  3. repeat
  4. wait(0.4)
  5. until plr.Character
  6. chr = plr.Character
  7. human = chr:FindFirstChild("Humanoid")
  8. mouse = plr:GetMouse()
  9. selected = false
  10. equipd = false
  11. tors = chr.Torso
  12. rarm = chr["Right Arm"]
  13. larm = chr["Left Arm"]
  14. rleg = chr["Right Leg"]
  15. lleg = chr["Left Leg"]
  16. hrp = chr.HumanoidRootPart
  17. head = chr.Head
  18. anim = human.Animator
  19. activu = false
  20. Heartbeat = Instance.new("BindableEvent")
  21. Heartbeat.Name = "Heartbeat"
  22. Heartbeat.Parent = script
  23. frame = 0.03333333333333333
  24. tf = 0
  25. game:GetService("RunService").Heartbeat:connect(function(s, p)
  26. tf = tf + s
  27. if tf >= frame then
  28. for i = 1, math.floor(tf / frame) do
  29. Heartbeat:Fire()
  30. end
  31. tf = tf - frame * math.floor(tf / frame)
  32. end
  33. end)
  34. function swait(num)
  35. if num == 0 or num == nil then
  36. Heartbeat.Event:wait()
  37. else
  38. for i = 1, num do
  39. Heartbeat.Event:wait()
  40. end
  41. end
  42. end
  43. tool = Instance.new("Tool")
  44. tool.CanBeDropped = false
  45. tool.RequiresHandle = false
  46. tool.Name = "Ultra gaster power"
  47. tool.Parent = plr.Backpack
  48. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  49. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  50. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  51. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  52. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  53. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  54. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  55. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  56. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  57. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  58. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  59. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  60. RS = tors:FindFirstChild("Right Shoulder")
  61. LS = tors:FindFirstChild("Left Shoulder")
  62. RH = tors:FindFirstChild("Right Hip")
  63. LH = tors:FindFirstChild("Left Hip")
  64. RJ = hrp:FindFirstChild("RootJoint")
  65. N = tors:FindFirstChild("Neck")
  66. cf = CFrame.new
  67. ang = CFrame.Angles
  68. rd = math.rad
  69. rd2 = math.random
  70. function nooutline(p)
  71. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  72. end
  73. function makepart(color, name, reflec, mater, parnt, cfram)
  74. local port = Instance.new("Part")
  75. port.BrickColor = BrickColor.new(color)
  76. port.Name = name
  77. nooutline(port)
  78. port.Reflectance = reflec
  79. port.Material = mater
  80. port.Anchored = false
  81. port.CanCollide = false
  82. port.Locked = true
  83. port.Size = Vector3.new(0.2, 0.2, 0.2)
  84. port.Parent = parnt
  85. return port
  86. end
  87. function makemesh(meshtype, scale, meshid, parent)
  88. local mes = Instance.new("SpecialMesh")
  89. mes.MeshType = meshtype
  90. mes.Scale = scale
  91. if meshtype == "FileMesh" then
  92. mes.MeshId = meshid
  93. end
  94. mes.Parent = parent
  95. return mes
  96. end
  97. function makeweld(parent, p0, p1, c0, c1)
  98. local wel = Instance.new("Weld")
  99. wel.Part0 = p0
  100. wel.Part1 = p1
  101. wel.C0 = c0
  102. if c1 ~= nil then
  103. wel.C1 = c1
  104. end
  105. wel.Parent = parent
  106. return wel
  107. end
  108. function smokz(prnt)
  109. s = Instance.new("Smoke")
  110. s.Color = Color3.new(1, 1, 1)
  111. s.Enabled = false
  112. s.Name = "smok"
  113. s.Opacity = 0.5
  114. s.RiseVelocity = 0.2
  115. s.Size = 0.1
  116. s.Parent = prnt
  117. end
  118. function glow(tz, paz, smokinz, length)
  119. if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then
  120. do
  121. local s = Instance.new("Sound")
  122. s.SoundId = "rbxassetid://298181829"
  123. s.Volume = 0.25
  124. s.Pitch = math.random(9, 11) / 10
  125. s.Parent = paz
  126. s:Play()
  127. paz.Transparency = 0.7
  128. if smokinz == true then
  129. paz.smok.Enabled = true
  130. end
  131. delay(length, function()
  132. paz.Transparency = 1
  133. paz.smok.Enabled = false
  134. s:Destroy()
  135. end)
  136. end
  137. end
  138. end
  139. function makeglow()
  140. for _, p in pairs(chr:GetChildren()) do
  141. if p.ClassName == "Accessory" then
  142. do
  143. local h = p:FindFirstChildOfClass("Part")
  144. local nh = h:Clone()
  145. nh.Parent = nil
  146. nh.CFrame = h.CFrame
  147. nh.Transparency = 1
  148. nh.Name = "Glow"
  149. nh.Material = "Neon"
  150. nh.BrickColor = BrickColor.new("Dark stone grey")
  151. nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
  152. nh.Parent = h
  153. makeweld(nh, nh, h, cf(0, 0, 0))
  154. local m = nh:FindFirstChildOfClass("SpecialMesh")
  155. m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06)
  156. m.TextureId = ""
  157. smokz(nh)
  158. nh.Touched:connect(function(po)
  159. glow(po, nh, true, 0.8)
  160. end)
  161. end
  162. elseif p.ClassName == "Part" and p ~= hrp then
  163. do
  164. local n = p:Clone()
  165. n.Parent = nil
  166. n.Transparency = 1
  167. n.Material = "Neon"
  168. n.Name = "Glow"
  169. n.BrickColor = BrickColor.new("Dark stone grey")
  170. n.CFrame = p.CFrame
  171. n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
  172. n.Parent = p
  173. makeweld(n, n, p, cf(0, 0, 0))
  174. smokz(n)
  175. n.Touched:connect(function(po)
  176. glow(po, n, true, 0.8)
  177. end)
  178. if n:FindFirstChildOfClass("Decal") then
  179. n:FindFirstChildOfClass("Decal"):Destroy()
  180. end
  181. if p:FindFirstChildOfClass("SpecialMesh") then
  182. local c = p:FindFirstChildOfClass("SpecialMesh"):Clone()
  183. c.Parent = nil
  184. c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05)
  185. c.Parent = n
  186. else
  187. local m = Instance.new("BlockMesh")
  188. m.Scale = Vector3.new(1.05, 1.025, 1.05)
  189. if p == tors then
  190. m.Scale = Vector3.new(1.05, 1.05, 1.05)
  191. end
  192. m.Parent = n
  193. end
  194. end
  195. end
  196. end
  197. end
  198. makeglow()
  199. function fglow(glopart, duration)
  200. for _ = 1, 4 do
  201. swait()
  202. glopart.Transparency = glopart.Transparency - 0.075
  203. end
  204. delay(duration, function()
  205. for _ = 1, 4 do
  206. swait()
  207. glopart.Transparency = glopart.Transparency + 0.075
  208. end
  209. end)
  210. end
  211. function lerpz(joint, prop, cfrmz, alp)
  212. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  213. end
  214. function resetlerp()
  215. RJ.C0 = RJC0
  216. RJ.C1 = RJC1
  217. N.C0 = NC0
  218. N.C1 = NC1
  219. RS.C0 = RSC0
  220. RS.C1 = RSC1
  221. LS.C0 = LSC0
  222. LS.C1 = LSC1
  223. RH.C0 = RHC0
  224. RH.C1 = RHC1
  225. LH.C0 = LHC0
  226. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement