Advertisement
DrakerMaker

INSANE wip

Dec 15th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. textanim = 0
  83. local BillboardGui = Instance.new("BillboardGui")
  84. local Frame = Instance.new("Frame")
  85. local Text = Instance.new("TextBox")
  86. BillboardGui.MaxDistance = 50
  87. BillboardGui.Name = "Type"
  88. BillboardGui.Parent = owner.Character.Head
  89. BillboardGui.Active = true
  90. BillboardGui.Size = UDim2.new(15.5, 0, 15, 0)
  91. BillboardGui.StudsOffset = Vector3.new(0, 6, 0)
  92.  
  93. Frame.Name = "Framer"
  94. Frame.Parent = BillboardGui
  95. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  96. Frame.BackgroundTransparency = 1
  97. Frame.BorderSizePixel = 0
  98. Frame.Position = UDim2.new(0.209999993, 0, 0.209999993, 0)
  99. Frame.Selectable = true
  100. Frame.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  101.  
  102. Text.Name = "Labeler"
  103. Text.Parent = Frame
  104. Text.BackgroundColor3 = Color3.new(0, 0, 0)
  105. Text.BackgroundTransparency = 1
  106. Text.BorderColor3 = Color3.new(0, 0, 0)
  107. Text.Position = UDim2.new(0.200000003, 0, 0.150000006, 0)
  108. Text.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  109. Text.ClearTextOnFocus = false
  110. Text.Font = Enum.Font.Fantasy
  111. Text.MultiLine = true
  112. Text.Text = "I . N . S . A . N . E"
  113. Text.TextColor3 = Color3.new(0,0,0)
  114. Text.TextSize = 100
  115. Text.TextStrokeTransparency = 0
  116. Text.TextWrapped = false
  117. local NightcoreiNSaNiTY = Instance.new("Sound")
  118. NightcoreiNSaNiTY.PlaybackSpeed = 0.89
  119. NightcoreiNSaNiTY.SoundId = "rbxassetid://2784904276"
  120. NightcoreiNSaNiTY.TimePosition = 190.9
  121. NightcoreiNSaNiTY.Volume = 6
  122. NightcoreiNSaNiTY.Looped = true
  123. NightcoreiNSaNiTY.Name = "Nightcore - iNSaNiTY"
  124. NightcoreiNSaNiTY.Parent = owner.Character.Head
  125. NightcoreiNSaNiTY:Play()
  126. function wbtwe(Part0, Part1, C0)
  127. local weld = Instance.new("Weld", Part0)
  128. weld.Part0 = Part0
  129. weld.Part1 = Part1
  130. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  131. return weld
  132. end
  133. function rayCast(Position, Direction, Range, Ignore)
  134. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  135. end
  136. run = 0
  137. idle = 0
  138. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
  139. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.45, 0.3, 0.1) *CFrame.Angles(-2.9, 25, -12))
  140. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1, 0, -0.4) *CFrame.Angles(2.9, 0, 12))
  141. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0.1))
  142. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, -0.1))
  143. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, -0.3) *CFrame.Angles(0.3, 0, 0))
  144. local shadowhead = Instance.new("Part",owner.Character.Head)
  145. shadowhead.BrickColor = BrickColor.new("Really black")
  146. shadowhead.Size = Vector3.new(1.2, 0.6, 1)
  147. shadowhead.CanCollide = false
  148. shadowhead.Locked = true
  149. local shadowheadmesh = Instance.new("SpecialMesh",shadowhead)
  150. shadowheadmesh.MeshType = "Head"
  151. shadowheadmesh.Scale = Vector3.new(1.26, 1.5, 1.26)
  152. local weld2 = Instance.new("Weld",shadowhead)
  153. weld2.Part0 = shadowhead
  154. weld2.Part1 = owner.Character.Head
  155. weld2.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  156. NLS([[
  157. while game:GetService("RunService").RenderStepped:wait() do
  158. workspace.CurrentCamera.CFrame=workspace.CurrentCamera.CFrame*CFrame.Angles(math.random(-1.2,1.2)/360,math.random(-1.2,1.2)/360,math.random(-1.2,1.2)/360)
  159. end
  160. ]], owner.Character)
  161. anim = coroutine.wrap(function()
  162. while game:GetService("RunService").Stepped:wait() do
  163. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  164. idle = idle +0.1
  165. hw.C0=hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -0.3) *CFrame.Angles(0.3, 0.4 +math.sin(idle) *0.2, 0), 0.1)
  166. hrw.C0=hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(idle) *0.1, 0), 0.1)
  167. law.C0=law.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(1.45, 0.3, 0.1) *CFrame.Angles(-2.9 +math.sin(idle) *0.2, 25, -12), 0.1)
  168. raw.C0=raw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-1, 0, -0.4) *CFrame.Angles(2.9 +math.sin(idle) *-0.2, 0, 12), 0.1)
  169. llw.C0=llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0.1), 0.1)
  170. rlw.C0=rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, -0.1), 0.1)
  171. end
  172. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  173. run = run +0.1
  174. hw.C0=hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -0.3) *CFrame.Angles(0.3, 0, 0), 0.1)
  175. hrw.C0=hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0), 0.1)
  176. law.C0=law.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(1.45, 0.1, math.sin(run) *0.1) *CFrame.Angles(math.sin(run) *-0.8, 25, 0), 0.1)
  177. raw.C0=raw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-1.4, 0.1, math.sin(run) *-0.1) *CFrame.Angles(math.sin(run) *0.8, 0, 0), 0.1)
  178. llw.C0=llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.45, 2.1 +math.cos(run) *0.4, math.sin(run) *-0.8) *CFrame.Angles(math.sin(run) *-0.8, 25, 0), 0.1)
  179. rlw.C0=rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.4, 2.1 -math.cos(run) *0.4, math.sin(run) *0.8) *CFrame.Angles(math.sin(run) *0.8, 25, 0), 0.1)
  180. end
  181. end
  182. end)anim()
  183. while game:GetService("RunService").Stepped:wait() do
  184. textanim = textanim +0.1
  185. Text.Rotation = math.random(-5, 5)
  186. Text.TextColor3 = BrickColor.Random().Color
  187. Text.TextStrokeColor3 = BrickColor.Random().Color
  188. shadowhead.BrickColor = BrickColor.Random()
  189. local service = game:GetService("TweenService")
  190. local table = {}
  191. table.StudsOffset = Vector3.new(math.sin(textanim) *math.random(-1,1), 6 +math.cos(textanim) *math.random(-1,1), 0)
  192. local tween2 = service:Create(BillboardGui, TweenInfo.new(0.2), table)
  193. tween2:Play()
  194. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement