Advertisement
eea

Untitled

eea
Aug 3rd, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 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. game.ReplicatedStorage:FindFirstChild(owner.Name).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. f.Name = "Block"
  45. NLS([[Block = workspace.Block
  46. Block.Touched:Connect(function(x)
  47. if x:IsA("Part") and not x.Parent:FindFirstChild("Humanoid") then
  48. x.CustomPhysicalProperties = PhysicalProperties.new(0.7,0.1,0.5,0.3,1)
  49. end
  50. end)]], owner.Character)
  51. f.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0.5, 0, 1)
  52. print(f.CustomPhysicalProperties.Density)
  53. print(f.CustomPhysicalProperties.Friction)
  54. print(f.CustomPhysicalProperties.FrictionWeight)
  55. wait(10)
  56. f:Destroy()
  57. end)
  58.  
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement