DrakerMaker

deadser wip

Jan 11th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.79 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. function wbtwe(Part0, Part1, C0)
  83. local weld = Instance.new("Weld", Part0)
  84. weld.Part0 = Part0
  85. weld.Part1 = Part1
  86. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  87. return weld
  88. end
  89. walk = 0
  90. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0))
  91. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.49, 0.1, 0) *CFrame.Angles(0, 25, 0.1))
  92. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.49, 0.1, 0) *CFrame.Angles(0, 0, -0.1))
  93. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 1.9, 0) *CFrame.Angles(0, 25, 0))
  94. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 1.9, 0) *CFrame.Angles(0, 0, 0) *CFrame.Angles(0, 0, 0))
  95. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0))
  96. local song = Instance.new("Sound", owner.Character.Head)
  97. song.Volume = 5
  98. song.SoundId = "rbxassetid://2128137966"
  99. song.Looped = true
  100. song:Play()
  101. local dialogue = Instance.new("Sound", owner.Character.Head)
  102. dialogue.Volume = 5
  103. dialogue.SoundId = "rbxassetid://177266782"
  104. local BillboardGui = Instance.new("BillboardGui")
  105. local Frame = Instance.new("Frame")
  106. local Text = Instance.new("TextBox")
  107. BillboardGui.MaxDistance = 50
  108. BillboardGui.Name = "Type"
  109. BillboardGui.Parent = owner.Character.Head
  110. BillboardGui.Active = true
  111. BillboardGui.Size = UDim2.new(35.5, 0, 15, 0)
  112. BillboardGui.StudsOffset = Vector3.new(-0.5, 6, 0)
  113.  
  114. Frame.Name = "Framer"
  115. Frame.Parent = BillboardGui
  116. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  117. Frame.BackgroundTransparency = 1
  118. Frame.BorderSizePixel = 0
  119. Frame.Position = UDim2.new(0.209999993, 0, 0.209999993, 0)
  120. Frame.Selectable = true
  121. Frame.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  122.  
  123. Text.Name = "Labeler"
  124. Text.Parent = Frame
  125. Text.BackgroundColor3 = Color3.new(0, 0, 0)
  126. Text.BackgroundTransparency = 1
  127. Text.BorderColor3 = Color3.new(0, 0, 0)
  128. Text.Position = UDim2.new(0.200000003, 0, 0.150000006, 0)
  129. Text.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  130. Text.ClearTextOnFocus = false
  131. Text.Font = Enum.Font.Fantasy
  132. Text.Text = ""
  133. Text.TextColor3 = BrickColor.new("Really black").Color
  134. Text.TextSize = 100
  135. Text.TextScaled = true
  136. walkincrease = 0.1
  137. anim = coroutine.wrap(function()
  138. while game:GetService("RunService").Stepped:wait() do
  139. walk = walk +walkincrease
  140.  
  141. end
  142. end)anim()
  143. chatdeb = false
  144. function speak(talk, delay)
  145. if chatdeb == false then
  146. chatdeb = true
  147. msg = talk
  148. Text.TextColor3 = BrickColor.new("Really black").Color
  149. BillboardGui.StudsOffset = Vector3.new(-0.5, 6, 0)
  150. for i = 1,string.len(msg) do
  151. wait(delay)
  152. Text.Text = talk:sub(1,i)
  153. dialogue:Play()
  154. Text.Rotation = math.random(-10, 0)
  155. end
  156. for i = 1,65 do
  157. wait()
  158. Text.Rotation = math.random(-10, 0)
  159. end
  160. Text.TextStrokeTransparency = 0
  161. glitch = "#$#&#$*@#&$*$%*#$&&%(%$^@E$$^$$(^&*%(^^##^#$(%^#^@(%&@#%#$&$*%^($&@@$R(%&W@%!@)^&#&@#%!@%!@%@#^@^$*%^*%^^#$&$%*&$&$%&#%&#%&%$&%$&%$&$%&#^@#%@#%@#^$%&%^(&*)&)*&)&*)&*)()+_^^$#&&%*(^%*$&%^)*&^%$^$%ty*%^&#^$%*$^$&$^*$U#$&$%&#^#$&$^(*%^##$@#$&#&@#^#^"
  162. for i = 1,math.random(5, 12) do
  163. wait(0)
  164. BillboardGui.StudsOffset = Vector3.new(math.random(-1, 0), math.random(5.5, 6.6), 0)
  165. Text.Text = glitch:sub(1,string.len(talk))
  166. Text.Rotation = math.random(-10, 10)
  167. Text.TextColor3 = Color3.new(math.random(0, 50), 0, 0)
  168. Text.TextStrokeColor3 = Color3.new(math.random(0, 50), 0, 0)
  169. end
  170. chatdeb = false
  171. Text.TextStrokeTransparency = 1
  172. Text.Text = " "
  173. end
  174. end
  175. deb = false
  176. animt = true
  177. owner.Chatted:connect(function(msg)
  178. speak(msg, 0)
  179. chatdeb = false
  180. end)
  181. bothanim = 0
  182. anim = coroutine.wrap(function()
  183. while game:GetService("RunService").Stepped:wait() do
  184. if animt == true then
  185. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  186. bothanim = bothanim +0.05
  187. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(bothanim) *-0.1, 0), 0.1)
  188. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.49, 0.1, 0) *CFrame.Angles(0, 25, 0.1), 0.1)
  189. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.49, 0.1, 0) *CFrame.Angles(0, 0, 0.1), 0.1)
  190. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.9, 0) *CFrame.Angles(0, 25, 0), 0.1)
  191. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 1.9, 0) *CFrame.Angles(0, 0, 0), 0.1)
  192. end
  193. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  194. bothanim = bothanim +0.1
  195. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(bothanim) *-0.1, 0) *CFrame.Angles(0, math.sin(bothanim) *-0.1, 0) 0.1)
  196. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.49, 0.1, 0) *CFrame.Angles(0, 25, 0.1), 0.1)
  197. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.49, 0.1, 0) *CFrame.Angles(0, 0, 0.1), 0.1)
  198. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.9, math.sin(bothanim) *0.1) *CFrame.Angles(math.sin(bothanim) *-0.1, 25, 0), 0.1)
  199. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 1.9, math.sin(bothanim) *-0.1) *CFrame.Angles(math.sin(bothanim) *0.1, 0, 0), 0.1)
  200. end
  201. end
  202. end
  203. end)anim()
  204. speak("THE WORLD IS MINE!")
Add Comment
Please, Sign In to add comment