Advertisement
eea

Untitled

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