Advertisement
pa1nx9

Free Roblox Script school simulator | make all items (boombox, chalk and push) free

Sep 26th, 2021
1,560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. game.Players.LocalPlayer.Backpack.Boombox.LocalScript:Destroy()
  2. game.Players.LocalPlayer.Backpack.Push.LocalScript:Destroy()
  3. for _,amogus in pairs(game.Players.LocalPlayer.Backpack['Chalk']:GetChildren()) do
  4. if amogus:IsA("LocalScript") then
  5. amogus:Destroy()
  6. end
  7. end
  8. wait(1)
  9. script = Instance.new("LocalScript", game.Players.LocalPlayer.Backpack['Chalk'])
  10. local u1 = false;
  11. local function u2(p1, p2)
  12. local v1 = RaycastParams.new();
  13. v1.FilterDescendantsInstances = { script.Parent.Parent, workspace.Ignore };
  14. v1.FilterType = Enum.RaycastFilterType.Blacklist;
  15. local v2 = workspace.CurrentCamera:ScreenPointToRay(p1, p2);
  16. return workspace:Raycast(v2.Origin, v2.Direction * 40, v1);
  17. end;
  18. script.Parent.Equipped:Connect(function(p3)
  19. local u3 = false;
  20. p3.Button1Down:Connect(function()
  21. local v3 = time();
  22. u1 = v3;
  23. local v4 = nil;
  24. while u1 == v3 do
  25. local v5 = u2(p3.X, p3.Y);
  26. if not v5 then
  27. return;
  28. end;
  29. if v5 and (2 == (1 + 1)) then
  30. if not v4 then
  31. v4 = v5.Position;
  32. end;
  33. if (v4 - v5.Position).Magnitude > 0.155 then
  34. u3 = true;
  35. script.Parent.Draw:FireServer(v5.Instance, v4, v5.Position);
  36. v4 = v5.Position;
  37. end;
  38. end;
  39. task.wait();
  40. end;
  41. end);
  42. p3.Button1Up:Connect(function()
  43. if not u3 then
  44. local v6 = u2(p3.X, p3.Y);
  45. script.Parent.Draw:FireServer(v6.Instance, v6.Position, v6.Position + Vector3.new(0, 0.2, 0));
  46. end;
  47. u3 = false;
  48. u1 = false;
  49. end);
  50. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement