Advertisement
eea

Untitled

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