Advertisement
eea

Untitled

eea
Aug 2nd, 2021
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. re = Instance.new("RemoteEvent",game.ReplicatedStorage)
  2. re.Name = owner.Name
  3.  
  4. NLS([[local Tool = Instance.new("Tool",owner.Backpack)
  5. c = game.ReplicatedStorage:FindFirstChild(owner.Name)
  6. Tool.Name = "BL"
  7.  
  8. K = game:GetService("RunService")
  9.  
  10. K.RenderStepped:Connect(function()
  11. if game.ReplicatedStorage:FindFirstChild(owner.Name) and game.ReplicatedStorage:FindFirstChildOfClass("RemoteEvent") then
  12. print("Remote Event checked.")
  13. end
  14. end)
  15.  
  16. local Handle = Instance.new("Part",Tool)
  17. Handle.Name = "Handle"
  18. Handle.Transparency = 1
  19.  
  20. Char = owner.Character
  21. Humanoid = Char.Humanoid
  22. Head = Char.Head
  23.  
  24. Player = game.Players.LocalPlayer
  25. Mouse = Player:GetMouse()
  26. print(script.Parent)
  27. print(owner)
  28.  
  29. owner.Backpack.BL.Activated:Connect(function()
  30. print("ok")
  31. point = Mouse.Hit.Position
  32. look = (point - Head.Position).Unit
  33. c:FireServer(look, point, Head.Position)
  34. print("Didn't fire server.")
  35. end)]], owner.Character)
  36.  
  37. n = game.ReplicatedStorage:FindFirstChild(owner.Name)
  38. if n then
  39. print("Got RemoteEvent")
  40. end
  41.  
  42. game.ReplicatedStorage:FindFirstChild(owner.Name).OnServerEvent:Connect(function(player,Look,point,pos)
  43. print("Fired Server.")
  44. local f = Instance.new("Part",workspace)
  45. f.Size = Vector3.new(10,10,10)
  46. f.Position = Look*10
  47. f.CFrame = CFrame.new(pos, point)
  48. f.Velocity = Look*160
  49. NLS([[workspace.Base.CustomPhysicalProperties = PhysicalProperties.new(0.7,0.1,0.5,0.3,1) print(workspace.Base.CustomPhysicalProperties.Friction)]], owner.Character)
  50. f.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0.5, 0, 1)
  51. print(f.CustomPhysicalProperties.Density)
  52. print(f.CustomPhysicalProperties.Friction)
  53. print(f.CustomPhysicalProperties.FrictionWeight)
  54. wait(10)
  55. f:Destroy()
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement