DrakerMaker

Untitled

Nov 29th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.66 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 rayCast(Position, Direction, Range, Ignore)
  83. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  84. end
  85. local Player_Size = 1
  86. function wbtwe(Part0, Part1, C0)
  87. local weld = Instance.new("Weld", Part0)
  88. weld.Part0 = Part0
  89. weld.Part1 = Part1
  90. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  91. return weld
  92. end
  93. idle = 1
  94. walk = 1
  95. deb = false
  96. animt = true
  97. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0))
  98. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.2, 0) *CFrame.Angles(0, 25, 0.2))
  99. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.2, 0) *CFrame.Angles(0, 0, -0.2))
  100. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0))
  101. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0))
  102. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0))
  103. local sign = Instance.new("BillboardGui", owner.Character.Head)
  104. sign.Parent = owner.Character.Head
  105. sign.StudsOffset=Vector3.new(0.5,1,0)
  106. sign.Size=UDim2.new(3,0,6,0)
  107. text=Instance.new("TextLabel")
  108. text.Text= "Rainbow"
  109. text.TextScaled = true
  110. text.TextColor3 = Color3.new(1, 1, 1)
  111. text.Size=UDim2.new(1,0,1,0)
  112. text.Position=UDim2.new(-0.125,0,-0.25,0)
  113. text.BackgroundTransparency = 1
  114. text.Font = "Fantasy"
  115. text.Parent=sign
  116. local song = Instance.new("Sound", owner.Character.Head)
  117. song.SoundId = "rbxassetid://864793052"
  118. song.Volume = 4
  119. song.Looped = true
  120. song:Play()
  121. local trail = Instance.new("Trail")
  122. trail.Parent = owner.Character
  123. trail.Transparency = NumberSequence.new(0, 1)
  124. local att0 = Instance.new("Attachment", owner.Character.Head)
  125. local att1 = Instance.new("Attachment", owner.Character.HumanoidRootPart)
  126. trail.Attachment0=att0
  127. trail.Attachment1=att1
  128. trail.Texture = "rbxassetid://1463504275"
  129. trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(0.839,0,0)),ColorSequenceKeypoint.new(0.111, Color3.new(1,0.624,0.02)),ColorSequenceKeypoint.new(0.248, Color3.new(1,1,0.047)),ColorSequenceKeypoint.new(0.388, Color3.new(0.278,1,0.325)),ColorSequenceKeypoint.new(0.547, Color3.new(0.341,1,0.925)),ColorSequenceKeypoint.new(0.712, Color3.new(0.251,0.302,1)),ColorSequenceKeypoint.new(0.864, Color3.new(0.686,0.243,1)),ColorSequenceKeypoint.new(0.997, Color3.new(1,0.655,0.851)),ColorSequenceKeypoint.new(1, Color3.new(1,1,1))})
  130. owner.Character.Humanoid.WalkSpeed = 9
  131. spawn(function()
  132. local TweenService = game:GetService("TweenService")
  133. local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,0,255),Color3.fromRGB(170,0,170)}
  134. local Int = 0
  135. while wait(0.2) do
  136. if Int == #Colours then Int = 0 end
  137. Int = Int+1
  138. TweenService:Create(text,TweenInfo.new(0.4),{TextColor3 = Colours[Int]}):Play()
  139. end
  140. end)
  141. mouse.KeyDown:connect(function(key)
  142. if key == "a" then
  143. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.Angles(0.05, 0, 0.1)
  144. end
  145. if key == "d" then
  146. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.Angles(0.05, 0, -0.1)
  147. end
  148. end)
  149. anim = coroutine.wrap(function()
  150. while game:GetService("RunService").Stepped:wait() do
  151. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  152. hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, owner.Character)
  153. if hitfloor then
  154. walk = walk +0.4
  155. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  156. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  157. do
  158. script.Parent = Player.Character
  159.  
  160. --RemoteEvent for communicating
  161. local Event = Instance.new("RemoteEvent")
  162. Event.Name = "UserInput_Event"
  163.  
  164. --Fake event to make stuff like Mouse.KeyDown work
  165. local function fakeEvent()
  166. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  167. t.connect = t.Connect
  168. return t
  169. end
  170.  
  171. --Creating fake input objects with fake variables
  172. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  173. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  174. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  175. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  176. end}
  177. --Merged 2 functions into one by checking amount of arguments
  178. CAS.UnbindAction = CAS.BindAction
  179.  
  180. --This function will trigger the events that have been :Connect()'ed
  181. local function te(self,ev,...)
  182. local t = m[ev]
  183. if t and t._fakeEvent and t.Function then
  184. t.Function(...)
  185. end
  186. end
  187. m.TrigEvent = te
  188. UIS.TrigEvent = te
  189.  
  190. Event.OnServerEvent:Connect(function(plr,io)
  191. if plr~=Player then return end
  192. if io.isMouse then
  193. m.Target = io.Target
  194. m.Hit = io.Hit
  195. else
  196. local b = io.UserInputState == Enum.UserInputState.Begin
  197. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  198. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  199. end
  200. for _,t in pairs(CAS.Actions) do
  201. for _,k in pairs(t.Keys) do
  202. if k==io.KeyCode then
  203. t.Function(t.Name,io.UserInputState,io)
  204. end
  205. end
  206. end
  207. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  208. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  209. end
  210. end)
  211. Event.Parent = NLS([==[
  212. local Player = game:GetService("Players").LocalPlayer
  213. local Event = script:WaitForChild("UserInput_Event")
  214.  
  215. local UIS = game:GetService("UserInputService")
  216. local input = function(io,a)
  217. if a then return end
  218. --Since InputObject is a client-side instance, we create and pass table instead
  219. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  220. end
  221. UIS.InputBegan:Connect(input)
  222. UIS.InputEnded:Connect(input)
  223.  
  224. local Mouse = Player:GetMouse()
  225. local h,t
  226. --Give the server mouse data 30 times every second, but only if the values changed
  227. --If player is not moving their mouse, client won't fire events
  228. while wait(1/30) do
  229. if h~=Mouse.Hit or t~=Mouse.Target then
  230. h,t=Mouse.Hit,Mouse.Target
  231. Event:FireServer({isMouse=true,Target=t,Hit=h})
  232. end
  233. end]==],Player.Character)
  234. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  235. end
  236. function rayCast(Position, Direction, Range, Ignore)
  237. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  238. end
  239. local Player_Size = 1
  240. function wbtwe(Part0, Part1, C0)
  241. local weld = Instance.new("Weld", Part0)
  242. weld.Part0 = Part0
  243. weld.Part1 = Part1
  244. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  245. return weld
  246. end
  247. idle = 1
  248. walk = 1
  249. deb = false
  250. animt = true
  251. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0))
  252. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.2, 0) *CFrame.Angles(0, 25, 0.2))
  253. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.2, 0) *CFrame.Angles(0, 0, -0.2))
  254. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0))
  255. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0))
  256. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0))
  257. local sign = Instance.new("BillboardGui", owner.Character.Head)
  258. sign.Parent = owner.Character.Head
  259. sign.StudsOffset=Vector3.new(0.5,1,0)
  260. sign.Size=UDim2.new(3,0,6,0)
  261. text=Instance.new("TextLabel")
  262. text.Text= "Rainbow"
  263. text.TextScaled = true
  264. text.TextColor3 = Color3.new(1, 1, 1)
  265. text.Size=UDim2.new(1,0,1,0)
  266. text.Position=UDim2.new(-0.125,0,-0.25,0)
  267. text.BackgroundTransparency = 1
  268. text.Font = "Fantasy"
  269. text.Parent=sign
  270. local song = Instance.new("Sound", owner.Character.Head)
  271. song.SoundId = "rbxassetid://864793052"
  272. song.Volume = 4
  273. song.Looped = true
  274. song:Play()
  275. local trail = Instance.new("Trail")
  276. trail.Parent = owner.Character
  277. trail.Transparency = NumberSequence.new(0, 1)
  278. local att0 = Instance.new("Attachment", owner.Character.Head)
  279. local att1 = Instance.new("Attachment", owner.Character.HumanoidRootPart)
  280. trail.Attachment0=att0
  281. trail.Attachment1=att1
  282. trail.Texture = "rbxassetid://1463504275"
  283. trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(0.839,0,0)),ColorSequenceKeypoint.new(0.111, Color3.new(1,0.624,0.02)),ColorSequenceKeypoint.new(0.248, Color3.new(1,1,0.047)),ColorSequenceKeypoint.new(0.388, Color3.new(0.278,1,0.325)),ColorSequenceKeypoint.new(0.547, Color3.new(0.341,1,0.925)),ColorSequenceKeypoint.new(0.712, Color3.new(0.251,0.302,1)),ColorSequenceKeypoint.new(0.864, Color3.new(0.686,0.243,1)),ColorSequenceKeypoint.new(0.997, Color3.new(1,0.655,0.851)),ColorSequenceKeypoint.new(1, Color3.new(1,1,1))})
  284. owner.Character.Humanoid.WalkSpeed = 9
  285. spawn(function()
  286. local TweenService = game:GetService("TweenService")
  287. local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,0,255),Color3.fromRGB(170,0,170)}
  288. local Int = 0
  289. while wait(0.2) do
  290. if Int == #Colours then Int = 0 end
  291. Int = Int+1
  292. TweenService:Create(text,TweenInfo.new(0.4),{TextColor3 = Colours[Int]}):Play()
  293. end
  294. end)
  295. mouse.KeyDown:connect(function(key)
  296. if key == "a" then
  297. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.Angles(0.05, 0, 0.1)
  298. end
  299. if key == "d" then
  300. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.Angles(0.05, 0, -0.1)
  301. end
  302. end)
  303. anim = coroutine.wrap(function()
  304. while game:GetService("RunService").Stepped:wait() do
  305. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  306. hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, owner.Character)
  307. if hitfloor then
  308. walk = walk +0.4
  309. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0.05) *CFrame.Angles(if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  310. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  311. do
  312. script.Parent = Player.Character
  313.  
  314. --RemoteEvent for communicating
  315. local Event = Instance.new("RemoteEvent")
  316. Event.Name = "UserInput_Event"
  317.  
  318. --Fake event to make stuff like Mouse.KeyDown work
  319. local function fakeEvent()
  320. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  321. t.connect = t.Connect
  322. return t
  323. end
  324.  
  325. --Creating fake input objects with fake variables
  326. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  327. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  328. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  329. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  330. end}
  331. --Merged 2 functions into one by checking amount of arguments
  332. CAS.UnbindAction = CAS.BindAction
  333.  
  334. --This function will trigger the events that have been :Connect()'ed
  335. local function te(self,ev,...)
  336. local t = m[ev]
  337. if t and t._fakeEvent and t.Function then
  338. t.Function(...)
  339. end
  340. end
  341. m.TrigEvent = te
  342. UIS.TrigEvent = te
  343.  
  344. Event.OnServerEvent:Connect(function(plr,io)
  345. if plr~=Player then return end
  346. if io.isMouse then
  347. m.Target = io.Target
  348. m.Hit = io.Hit
  349. else
  350. local b = io.UserInputState == Enum.UserInputState.Begin
  351. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  352. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  353. end
  354. for _,t in pairs(CAS.Actions) do
  355. for _,k in pairs(t.Keys) do
  356. if k==io.KeyCode then
  357. t.Function(t.Name,io.UserInputState,io)
  358. end
  359. end
  360. end
  361. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  362. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  363. end
  364. end)
  365. Event.Parent = NLS([==[
  366. local Player = game:GetService("Players").LocalPlayer
  367. local Event = script:WaitForChild("UserInput_Event")
  368.  
  369. local UIS = game:GetService("UserInputService")
  370. local input = function(io,a)
  371. if a then return end
  372. --Since InputObject is a client-side instance, we create and pass table instead
  373. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  374. end
  375. UIS.InputBegan:Connect(input)
  376. UIS.InputEnded:Connect(input)
  377.  
  378. local Mouse = Player:GetMouse()
  379. local h,t
  380. --Give the server mouse data 30 times every second, but only if the values changed
  381. --If player is not moving their mouse, client won't fire events
  382. while wait(1/30) do
  383. if h~=Mouse.Hit or t~=Mouse.Target then
  384. h,t=Mouse.Hit,Mouse.Target
  385. Event:FireServer({isMouse=true,Target=t,Hit=h})
  386. end
  387. end]==],Player.Character)
  388. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  389. end
  390. function rayCast(Position, Direction, Range, Ignore)
  391. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  392. end
  393. local Player_Size = 1
  394. function wbtwe(Part0, Part1, C0)
  395. local weld = Instance.new("Weld", Part0)
  396. weld.Part0 = Part0
  397. weld.Part1 = Part1
  398. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  399. return weld
  400. end
  401. idle = 1
  402. walk = 1
  403. deb = false
  404. animt = true
  405. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0))
  406. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.2, 0) *CFrame.Angles(0, 25, 0.2))
  407. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.2, 0) *CFrame.Angles(0, 0, -0.2))
  408. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0))
  409. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0))
  410. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0))
  411. local sign = Instance.new("BillboardGui", owner.Character.Head)
  412. sign.Parent = owner.Character.Head
  413. sign.StudsOffset=Vector3.new(0.5,1,0)
  414. sign.Size=UDim2.new(3,0,6,0)
  415. text=Instance.new("TextLabel")
  416. text.Text= "Rainbow"
  417. text.TextScaled = true
  418. text.TextColor3 = Color3.new(1, 1, 1)
  419. text.Size=UDim2.new(1,0,1,0)
  420. text.Position=UDim2.new(-0.125,0,-0.25,0)
  421. text.BackgroundTransparency = 1
  422. text.Font = "Fantasy"
  423. text.Parent=sign
  424. local song = Instance.new("Sound", owner.Character.Head)
  425. song.SoundId = "rbxassetid://864793052"
  426. song.Volume = 4
  427. song.Looped = true
  428. song:Play()
  429. local trail = Instance.new("Trail")
  430. trail.Parent = owner.Character
  431. trail.Transparency = NumberSequence.new(0, 1)
  432. local att0 = Instance.new("Attachment", owner.Character.Head)
  433. local att1 = Instance.new("Attachment", owner.Character.HumanoidRootPart)
  434. trail.Attachment0=att0
  435. trail.Attachment1=att1
  436. trail.Texture = "rbxassetid://1463504275"
  437. trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(0.839,0,0)),ColorSequenceKeypoint.new(0.111, Color3.new(1,0.624,0.02)),ColorSequenceKeypoint.new(0.248, Color3.new(1,1,0.047)),ColorSequenceKeypoint.new(0.388, Color3.new(0.278,1,0.325)),ColorSequenceKeypoint.new(0.547, Color3.new(0.341,1,0.925)),ColorSequenceKeypoint.new(0.712, Color3.new(0.251,0.302,1)),ColorSequenceKeypoint.new(0.864, Color3.new(0.686,0.243,1)),ColorSequenceKeypoint.new(0.997, Color3.new(1,0.655,0.851)),ColorSequenceKeypoint.new(1, Color3.new(1,1,1))})
  438. owner.Character.Humanoid.WalkSpeed = 9
  439. spawn(function()
  440. local TweenService = game:GetService("TweenService")
  441. local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,0,255),Color3.fromRGB(170,0,170)}
  442. local Int = 0
  443. while wait(0.2) do
  444. if Int == #Colours then Int = 0 end
  445. Int = Int+1
  446. TweenService:Create(text,TweenInfo.new(0.4),{TextColor3 = Colours[Int]}):Play()
  447. end
  448. end)
  449. mouse.KeyDown:connect(function(key)
  450. if key == "a" then
  451. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.Angles(0.05, 0, 0.1)
  452. end
  453. if key == "d" then
  454. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.Angles(0.05, 0, -0.1)
  455. end
  456. end)
  457. anim = coroutine.wrap(function()
  458. while game:GetService("RunService").Stepped:wait() do
  459. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  460. hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, owner.Character)
  461. if hitfloor then
  462. walk = walk +0.4
  463. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0.05) *CFrame.Angles(0.2, 0, 0), 0.2)
  464. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0), 0.2)
  465. end
  466. if hitfloor == nil then
  467.  
  468. end
  469. end
  470. end
  471. end)anim()
  472. health = coroutine.wrap(function()
  473. while game:GetService("RunService").Stepped:wait() do
  474. owner.Character.Humanoid.MaxHealth = math.huge
  475. owner.Character.Humanoid.Health = math.huge
  476. end
  477. end)health(), 0, 0), 0.2)
  478. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0), 0.2)
  479. end
  480. if hitfloor == nil then
  481.  
  482. end
  483. end
  484. end
  485. end)anim()
  486. health = coroutine.wrap(function()
  487. while game:GetService("RunService").Stepped:wait() do
  488. owner.Character.Humanoid.MaxHealth = math.huge
  489. owner.Character.Humanoid.Health = math.huge
  490. end
  491. end)health()) *CFrame.Angles(0.2, 0, 0), 0.2)
  492. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0), 0.2)
  493. end
  494. if hitfloor == nil then
  495.  
  496. end
  497. end
  498. end
  499. end)anim()
  500. health = coroutine.wrap(function()
  501. while game:GetService("RunService").Stepped:wait() do
  502. owner.Character.Humanoid.MaxHealth = math.huge
  503. owner.Character.Humanoid.Health = math.huge
  504. end
  505. end)health()
Add Comment
Please, Sign In to add comment