TheUnknownDiscord

Untitled

Oct 10th, 2021 (edited)
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local THEhideout = game:GetService("Chat")
  2. local hideout
  3. if not THEhideout:FindFirstChild("Workspace") then
  4. hideout = Instance.new("Folder", THEhideout)
  5. hideout.Name = "Workspace"
  6. else
  7. hideout = THEhideout.Workspace
  8. end
  9. Tool = Instance.new("Tool")
  10. Tool.Name = "Gun"
  11. Gun = Instance.new("Part")
  12. Gun.Name = "Handle"
  13. Gun.Parent = Tool
  14. Tool.Parent = workspace.Lucas_YT111
  15. Gun.Size = Vector3.new(1, 1, 1)
  16. islunging = false
  17. toolout = false
  18.  
  19. Tool.Equipped:Connect(function()
  20. toolout = true
  21. end)
  22.  
  23. Tool.Unequipped:Connect(function()
  24. toolout = false
  25. end)
  26.  
  27. Tool.Activated:connect(function()
  28. islunging = true
  29. wait(0.65)
  30. islunging = false
  31. end)
  32. local who
  33. local isTouched = false
  34. count = 0
  35. function thinghere(plr,action,part)
  36. if islunging then
  37. count = count + 1
  38. if count == 1 then
  39. local Model = part:FindFirstAncestorOfClass("Model")
  40. if Model then
  41. local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
  42. if PC then
  43. PC.Character.Parent = hideout
  44. who = PC
  45. end
  46. end
  47. elseif count == 2 then
  48. who.Character.Parent = workspace
  49. wait()
  50. who.Character.Humanoid.RootPart.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2.5)
  51. wait()
  52. count = 0
  53. end
  54. end
  55. end
  56.  
  57.  
  58. local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
  59. local Mouse = owner:GetMouse()
  60. function ButtonDown()
  61. if Mouse.Target ~= nil then
  62. E:FireServer("Down",Mouse.Target)
  63. end
  64. end
  65. Mouse.Button1Down:Connect(ButtonDown)
  66. ]],owner.PlayerGui))
  67. E.OnServerEvent:Connect(thinghere)
RAW Paste Data