Wubzer

Wxsp

Sep 1st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.60 KB | None | 0 0
  1. --// Variables
  2. local ScriptInfo = ({
  3. ["Name"] = "Wxsp v1.4",
  4. ["Description"] = "Too OP lazer script. || Use Z to change mode and X to attack.",
  5. ["Author"] = "WXBZ",
  6. ["Editted"] = false,
  7. ["EditAuthor"] = ""
  8. });
  9. local Players = (game.Players);
  10. local Player = (Players.LocalPlayer);
  11. local Character = (Player.Character);
  12. local Humanoid = (Character.Humanoid)
  13. local Mouse = (Player:GetMouse());
  14. local WxspPart;
  15. local GuiText;
  16. local Mode = (1);
  17. local Modes = {
  18. "Beam",
  19. "Aimbot",
  20. "Automatic"
  21. };
  22.  
  23. --// Humanoid Protection
  24. do
  25. game:GetService("RunService").RenderStepped:Connect(function()
  26. for _, i in pairs(Character:GetChildren()) do
  27. if (not i:IsA("BasePart")) then i.Name = "Wxsp Object Protection Randomized Number: " .. math.random(1e7, 1e8); end;
  28. end
  29. end);
  30. end;
  31.  
  32. --// TypeWriter Function
  33. do
  34. function TypeWriter(DebrisTime, String, BaseObj)
  35. --// Type Writer Effect
  36. --// Created by: Wubzer
  37. --// I found the "magic number" 0.58333 just through trial and error of finding the perfect dynamic factor.
  38. --// Destroy Extra Type Writer
  39. if (String == "[" .. Player.Name .. "]: " or String == nil) then return; end;
  40. if (workspace:FindFirstChild(Player.Name .. "[TypeWriterText]")) then workspace[Player.Name .. "[TypeWriterText]"]:Destroy(); end;
  41. --// Variables
  42. local VectorUp = (CFrame.new(0, -3.5, 0));
  43. local TypePart = (Instance.new("Part", workspace));
  44. local TypeBill = (Instance.new("BillboardGui", TypePart));
  45. local TypeText = (Instance.new("TextLabel", TypeBill));
  46. local TypeWeld = (Instance.new("Weld", TypePart));
  47. --// TypePart
  48. TypePart.BrickColor = (BrickColor.new("Really black"));
  49. TypePart.Transparency = (1);
  50. TypePart.Name = (Player.Name .. "[TypeWriterText]");
  51. TypePart.CFrame = (BaseObj.CFrame)
  52. TypePart.Anchored = (false);
  53. TypePart.CanCollide = (false);
  54. TypePart.Size = (Vector3.new(1, 1, 1));
  55. --// TypeBill
  56. TypeBill.Name = ("TypeBill");
  57. TypeBill.Size = UDim2.new(string.len(String) * 0.58333, 0, 0.86, 0);
  58. --// TypeText
  59. TypeText.BackgroundTransparency = (1);
  60. TypeText.Name = ("TypeText");
  61. TypeText.Size = (UDim2.new(1, 0, 1, 0));
  62. TypeText.Font = (Enum.Font.Bodoni);
  63. TypeText.Text = ("");
  64. TypeText.TextColor3 = (Color3.new(0, 0, 0));
  65. TypeText.TextScaled = (true);
  66. TypeText.TextStrokeColor3 = (Color3.new(1, 0, 0));
  67. TypeText.TextStrokeTransparency = (0);
  68. --// TypeWeld
  69. TypeWeld.Part0 = (BaseObj);
  70. TypeWeld.Part1 = (TypePart);
  71. TypeWeld.C0 = (BaseObj.CFrame:inverse());
  72. TypeWeld.C1 = (BaseObj.CFrame:inverse() * VectorUp);
  73. --// Debris
  74. game.Debris:AddItem(TypePart, (DebrisTime + (string.len(String) * 0.05)));
  75. --// Change Text
  76. for i = 1, string.len(String) do
  77. if (not workspace:FindFirstChild(Player.Name .. "[TypeWriterText]")) then break; end;
  78. workspace:FindFirstChild(Player.Name .. "[TypeWriterText]").TypeBill.TypeText.Text = (string.sub(String, 1, i));
  79. wait(0.05);
  80. end;
  81. end;
  82. Player.Chatted:Connect(function(Msg)
  83. TypeWriter(7, "[" .. Player.Name .. "]: " .. Msg, Character.HumanoidRootPart);
  84. end);
  85. end;
  86.  
  87.  
  88.  
  89.  
  90. --// Init
  91. do
  92. --// Wxsp
  93. --// Variables
  94. WxspPart = (Instance.new("Part", Character));
  95. local Weld = (Instance.new("Weld", WxspPart));
  96. local PEmit = (Instance.new("ParticleEmitter", WxspPart));
  97. --// WxspPart
  98. WxspPart.BrickColor = (BrickColor.new("Really red"));
  99. WxspPart.Material = (Enum.Material.Neon);
  100. WxspPart.Transparency = (0.1);
  101. WxspPart.Name = ("WxspPart");
  102. WxspPart.CanCollide = (false);
  103. WxspPart.Shape = (Enum.PartType.Ball);
  104. WxspPart.Size = (Vector3.new(0.7));
  105. --// Weld
  106. Weld.Part0 = (Character.HumanoidRootPart);
  107. Weld.Part1 = (WxspPart);
  108. Weld.C0 = (Character.HumanoidRootPart.CFrame:inverse());
  109. Weld.C1 = (Character.HumanoidRootPart.CFrame:inverse() * CFrame.new(3, -4, 2));
  110. --// PEmit
  111. local clr = (Color3.new(1, 0, 0));
  112. PEmit.Color = (ColorSequence.new(clr, clr));
  113. PEmit.LightEmission = (0.3);
  114. PEmit.Size = (NumberSequence.new(0.13, 0.0625));
  115. PEmit.Texture = ("rbxassetid://930850620");
  116. PEmit.Transparency = (NumberSequence.new(0, 1));
  117. PEmit.Acceleration = (Vector3.new(0, -50, 0));
  118. PEmit.Lifetime = (NumberRange.new(0.3, 0.5));
  119. PEmit.Rate = (100);
  120. PEmit.Speed = (NumberRange.new(0, 0));
  121. PEmit.SpreadAngle = (Vector2.new(5, 0));
  122. --// Gui
  123. --// Variables
  124. local Gui = (Instance.new("ScreenGui", Player.PlayerGui));
  125. GuiText = (Instance.new("TextLabel", Gui));
  126. local TextCons = (Instance.new("UITextSizeConstraint", GuiText));
  127. --// Gui
  128. Gui.Name = ("WxspGui");
  129. --// GuiText
  130. GuiText.BackgroundTransparency = (1);
  131. GuiText.Name = ("WxspText");
  132. GuiText.Position = (UDim2.new(0, 0, 0.9, 0));
  133. GuiText.Size = (UDim2.new(1, 0, 0.06, 0));
  134. GuiText.Font = (Enum.Font.Bodoni);
  135. GuiText.Text = ("Mode: " .. Modes[Mode]);
  136. GuiText.TextColor3 = (Color3.new(0, 0, 0));
  137. GuiText.TextScaled = (true);
  138. GuiText.TextStrokeColor3 = (Color3.new(1, 0, 0));
  139. GuiText.TextStrokeTransparency = (0);
  140. --// TextCons
  141. TextCons.Name = ("TextConstraint");
  142. TextCons.MaxTextSize = (35);
  143. --// Init Message
  144. TypeWriter(0.7, "Name: " .. ScriptInfo["Name"], Character.HumanoidRootPart);
  145. repeat wait() until (not workspace:FindFirstChild(Player.Name .. "[TypeWriterText]"));
  146. TypeWriter(0.7, "Desc: " .. ScriptInfo["Description"], Character.HumanoidRootPart);
  147. repeat wait() until (not workspace:FindFirstChild(Player.Name .. "[TypeWriterText]"));
  148. TypeWriter(0.7, "Author: " .. ScriptInfo["Author"], Character.HumanoidRootPart);
  149. repeat wait() until (not workspace:FindFirstChild(Player.Name .. "[TypeWriterText]"));
  150. if (ScriptInfo["Editted"]) then TypeWriter(0.7, "Edit Author: " .. ScriptInfo["EditAuthor"], Character.HumanoidRootPart); end;
  151. end;
  152.  
  153.  
  154.  
  155.  
  156. --// Handling
  157. do
  158. function KeyPressing()
  159. for _, i in pairs(game:GetService("UserInputService"):GetKeysPressed()) do
  160. if (i.KeyCode == Enum.KeyCode.X) then
  161. return true;
  162. end;
  163. end;
  164. return false;
  165. end;
  166. --// "Tools"
  167. game:GetService("UserInputService").InputBegan:Connect(function(K)
  168. if (K.KeyCode == Enum.KeyCode.Z) then
  169. if (Mode < #Modes) then
  170. Mode = (Mode + 1);
  171. GuiText.Text = ("Mode: " .. Modes[Mode]);
  172. else
  173. Mode = (1);
  174. GuiText.Text = ("Mode: " .. Modes[Mode]);
  175. end;
  176. elseif (K.KeyCode == Enum.KeyCode.X) then
  177. --// Beam
  178. if (Mode == 1) then
  179. local BeamRay = Ray.new(WxspPart.CFrame.p, (Mouse.Hit.p - WxspPart.CFrame.p).unit * 1e8);
  180. local Obj, Pos = workspace:FindPartOnRay(BeamRay, WxspPart, false, true);
  181. local Beam = Instance.new("Part", workspace);
  182. local Dis = (WxspPart.CFrame.p - Pos).magnitude;
  183. Beam.Anchored = (true);
  184. Beam.CanCollide = (false);
  185. Beam.BrickColor = BrickColor.new("Really red");
  186. Beam.Material = Enum.Material.Neon;
  187. Beam.Size = Vector3.new(0.3, 0.3, Dis);
  188. Beam.CFrame = CFrame.new(WxspPart.CFrame.p, Pos) * CFrame.new(0, 0, -Dis / 2);
  189. if (Obj ~= nil and Obj.Parent and game.Players:FindFirstChild(Obj.Parent.Name) and Obj.Parent ~= Character or Obj ~= nil and Obj.Parent and Obj.Parent:FindFirstChild("Humanoid") and Obj.Parent ~= Character) then
  190. Obj.Parent:BreakJoints();
  191. elseif (Obj ~= nil and Obj.Parent.Parent and game.Players:FindFirstChild(Obj.Parent.Parent.Name) and Obj.Parent.Parent ~= Character or Obj ~= nil and Obj.Parent.Parent and Obj.Parent.Parent:FindFirstChild("Humanoid") and Obj.Parent.Parent ~= Character) then
  192. Obj.Parent.Parent:BreakJoints();
  193. end
  194. game.Debris:AddItem(Beam, .1);
  195. --// Aimbot
  196. elseif (Mode == 2) then
  197. for _, i in pairs(game.Players:GetPlayers()) do
  198. if (i ~= Player and i.Character:FindFirstChild("Humanoid") and i.Character.Humanoid.Health > 0) then
  199. local BeamRay = Ray.new(WxspPart.CFrame.p, (i.Character.Head.CFrame.p - WxspPart.CFrame.p).unit * 1e8);
  200. local Obj, Pos = workspace:FindPartOnRay(BeamRay, WxspPart, false, true);
  201. local Dis = (WxspPart.CFrame.p - Pos).magnitude;
  202. if (Obj ~= nil and Obj.Parent and Obj.Parent.Name == i.Name) then
  203. local Beam = Instance.new("Part", workspace);
  204. Beam.Anchored = (true);
  205. Beam.CanCollide = (false);
  206. Beam.BrickColor = BrickColor.new("Really red");
  207. Beam.Material = Enum.Material.Neon;
  208. Beam.Size = Vector3.new(0.3, 0.3, Dis);
  209. Beam.CFrame = CFrame.new(WxspPart.CFrame.p, Pos) * CFrame.new(0, 0, -Dis / 2);
  210. Obj.Parent:BreakJoints();
  211. game.Debris:AddItem(Beam, 0.1);
  212. break;
  213. elseif (Obj ~= nil and Obj.Parent.Parent and Obj.Parent.Parent.Name == i.Name) then
  214. local Beam = Instance.new("Part", workspace);
  215. Beam.Anchored = (true);
  216. Beam.CanCollide = (false);
  217. Beam.BrickColor = BrickColor.new("Really red");
  218. Beam.Material = Enum.Material.Neon;
  219. Beam.Size = Vector3.new(0.3, 0.3, Dis);
  220. Beam.CFrame = CFrame.new(WxspPart.CFrame.p, Pos) * CFrame.new(0, 0, -Dis / 2);
  221. Obj.Parent.Parent:BreakJoints();
  222. game.Debris:AddItem(Beam, 0.1);
  223. break;
  224. end;
  225. end
  226. end
  227. --// Automatic
  228. elseif (Mode == 3) then
  229. repeat wait()
  230. local BeamRay = Ray.new(WxspPart.CFrame.p, (Mouse.Hit.p - WxspPart.CFrame.p).unit * 1e8);
  231. local Obj, Pos = workspace:FindPartOnRay(BeamRay, WxspPart, false, true);
  232. if (Obj ~= nil and Obj.Name ~= "AutomaticLaser") then
  233. local Beam = Instance.new("Part", workspace);
  234. local Dis = (WxspPart.CFrame.p - Pos).magnitude;
  235. Beam.Name = "AutomaticLaser";
  236. Beam.Anchored = (true);
  237. Beam.CanCollide = (false);
  238. Beam.BrickColor = BrickColor.new("Really red");
  239. Beam.Material = Enum.Material.Neon;
  240. Beam.Size = Vector3.new(0.3, 0.3, Dis);
  241. Beam.CFrame = CFrame.new(WxspPart.CFrame.p, Pos) * CFrame.new(0, 0, -Dis / 2);
  242. if (Obj.Parent and Obj.Parent:FindFirstChild("Humanoid") and Obj.Parent ~= Character and Obj.Parent:FindFirstChild("Humanoid").Health > 0) then
  243. local dmg = math.random(35, 80);
  244. local DamagePart = (Instance.new("Part", workspace));
  245. local DamageBill = (Instance.new("BillboardGui", DamagePart));
  246. local DamageText = (Instance.new("TextLabel", DamageBill));
  247. local BodyVelocity = (Instance.new("BodyVelocity", DamagePart))
  248. DamagePart.BrickColor = BrickColor.new("Really black");
  249. DamagePart.Transparency = 1;
  250. DamagePart.CFrame = Obj.Parent.Humanoid.RootPart.CFrame * CFrame.new(math.random(-4, 4), 3, math.random(-4, 4));
  251. DamagePart.Size = Vector3.new(0, 0, 0);
  252. DamageBill.Size = UDim2.new(4, 0, 2, 0);
  253. DamageText.BackgroundTransparency = 1;
  254. DamageText.Size = UDim2.new(1, 0, 1, 0);
  255. DamageText.Font = Enum.Font.Bodoni;
  256. DamageText.Text = "-" .. dmg;
  257. DamageText.TextColor3 = Color3.new(0, 0, 0);
  258. DamageText.TextScaled = true;
  259. DamageText.TextStrokeColor3 = Color3.new(1, 0, 0);
  260. DamageText.TextStrokeTransparency = 0;
  261. BodyVelocity.MaxForce = Vector3.new(1e8, 1e8, 1e8);
  262. BodyVelocity.P = 1e8;
  263. BodyVelocity.Velocity = Vector3.new(0, 0.7, 0);
  264. game.Debris:AddItem(DamagePart, 2);
  265. Obj.Parent:FindFirstChild("Humanoid").Health = Obj.Parent:FindFirstChild("Humanoid").Health - dmg;
  266. elseif (Obj.Parent.Parent and Obj.Parent.Parent:FindFirstChild("Humanoid") and Obj.Parent.Parent ~= Character and Obj.Parent.Parent:FindFirstChild("Humanoid").Health > 0) then
  267. local dmg = math.random(35, 80);
  268. local DamagePart = (Instance.new("Part", workspace));
  269. local DamageBill = (Instance.new("BillboardGui", DamagePart));
  270. local DamageText = (Instance.new("TextLabel", DamageBill));
  271. local BodyVelocity = (Instance.new("BodyVelocity", DamagePart))
  272. DamagePart.BrickColor = BrickColor.new("Really black");
  273. DamagePart.Transparency = 1;
  274. DamagePart.CFrame = Obj.Parent.Parent.Humanoid.RootPart.CFrame * CFrame.new(math.random(-4, 4), 3, math.random(-4, 4));
  275. DamagePart.Size = Vector3.new(0, 0, 0);
  276. DamageBill.Size = UDim2.new(4, 0, 2, 0);
  277. DamageText.BackgroundTransparency = 1;
  278. DamageText.Size = UDim2.new(1, 0, 1, 0);
  279. DamageText.Font = Enum.Font.Bodoni;
  280. DamageText.Text = "-" .. dmg;
  281. DamageText.TextColor3 = Color3.new(0, 0, 0);
  282. DamageText.TextScaled = true;
  283. DamageText.TextStrokeColor3 = Color3.new(1, 0, 0);
  284. DamageText.TextStrokeTransparency = 0;
  285. BodyVelocity.MaxForce = Vector3.new(1e8, 1e8, 1e8);
  286. BodyVelocity.P = 1e8;
  287. BodyVelocity.Velocity = Vector3.new(0, 0.7, 0);
  288. game.Debris:AddItem(DamagePart, 2);
  289. Obj.Parent.Parent:FindFirstChild("Humanoid").Health = Obj.Parent.Parent:FindFirstChild("Humanoid").Health - dmg;
  290. end
  291. game.Debris:AddItem(Beam, .1);
  292. end;
  293. until (not KeyPressing());
  294. end;
  295. end;
  296. end);
  297. end;
Add Comment
Please, Sign In to add comment