Advertisement
evanmf7

fakechar

Apr 27th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. local nl=NLS([[
  2.  
  3.  
  4. task.wait()
  5. script.Parent=nil
  6.  
  7. local c=game:GetService("Chat"):WaitForChild('#'..game.Players.LocalPlayer.Name)
  8. local p=game:GetService("Players")['LocalPlayer']:GetMouse()
  9.  
  10. local rt=Instance.new("Part")
  11. local cm=Instance.new("Part")
  12. rt.CFrame=CFrame.new(0,3,0)
  13.  
  14. local spd=.2
  15.  
  16. local W,A,S,D
  17. p.KeyDown:Connect(function(k)
  18. if k=='w'then
  19. W=true
  20. repeat task.wait()
  21. rt.CFrame=rt.CFrame*CFrame.new(0,0,-spd)
  22. until W~=true
  23. end
  24. if k=='a'then
  25. A=true
  26. repeat task.wait()
  27. rt.CFrame=rt.CFrame*CFrame.new(-spd,0,0)
  28. until A~=true
  29. end
  30. if k=='s'then
  31. S=true
  32. repeat task.wait()
  33. rt.CFrame=rt.CFrame*CFrame.new(0,0,spd)
  34. until S~=true
  35. end
  36. if k=='d'then
  37. D=true
  38. repeat task.wait()
  39. rt.CFrame=rt.CFrame*CFrame.new(spd,0,0)
  40. until D~=true
  41. end
  42. end)
  43.  
  44. p.KeyUp:Connect(function(k)
  45. if k=='w'then W=nil end
  46. if k=='a'then A=nil end
  47. if k=='s'then S=nil end
  48. if k=='d'then D=nil end
  49. end)
  50.  
  51. game:GetService("RunService")['RenderStepped']:Connect(function()
  52. cm.CFrame=workspace.CurrentCamera.CFrame
  53. rt.Orientation=Vector3.new(0,cm.Orientation.Y,0)
  54. workspace['CurrentCamera']['CameraSubject']=rt
  55. if W or A or S or D then
  56. c:FireServer(rt.CFrame)
  57. end
  58. end)
  59. ]],owner['Backpack'])
  60.  
  61. for i,x in pairs(game:GetService("Chat"):children())do
  62. if x.Name=='#'..owner.Name then x:Destroy()end
  63. end
  64.  
  65. local r=Instance.new("RemoteEvent")
  66. r.Name="#"..owner.Name
  67. r.Parent=game['Chat']
  68.  
  69. local rt=Instance.new("Part")
  70. rt.Anchored=true
  71. rt.Parent=workspace
  72. rt.Size=Vector3.new(2,2,2)
  73.  
  74. local sn=0
  75. local cf=CFrame.new()
  76. r.OnServerEvent:Connect(function(p,v)
  77. sn+=1
  78. if p.Name==owner.Name then else return end
  79. cf=v
  80. end)
  81.  
  82. local x,y,z=0,0,0
  83. game:GetService("RunService")['Heartbeat']:Connect(function()
  84. sn+=1
  85. x+=1
  86. y+=2
  87. z+=4
  88. local cf2=CFrame.new(0,math.sin(sn/35)/3,0)*CFrame.Angles(math.rad(x),math.rad(y),math.rad(z))
  89. rt.CFrame=rt.CFrame:Lerp(cf*cf2,.2)
  90. end)
  91.  
  92. owner.Character:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement