Advertisement
eea

Untitled

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