Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Handle = Instance.new("Part",Tool)
- Handle.Name = "Handle"
- Handle.Transparency = 1
- Char = owner.Character
- Humanoid = Char.Humanoid
- Head = Char.Head
- Player = game.Players.LocalPlayer
- Mouse = Player:GetMouse()
- print(script.Parent)
- print(owner)
- owner.Backpack.BL.Activated:Connect(function()
- print("ok")
- point = Mouse.Hit.Position
- look = (point - Head.Position).Unit
- c:FireServer(look, point, Head.Position)
- print("Didn't fire server.")
- end)]], owner.Character)
- n = game.ReplicatedStorage:FindFirstChild(owner.Name)
- if n then
- print("Got RemoteEvent")
- end
- game.ReplicatedStorage:FindFirstChild(owner.Name).OnServerEvent:Connect(function(player,Look,point,pos)
- print("Fired Server.")
- local f = Instance.new("Part",workspace)
- f.Size = Vector3.new(10,10,10)
- f.Position = Look*10
- f.CFrame = CFrame.new(pos, point)
- f.Velocity = Look*160
- f.Name = "Block"
- NLS([[Block = workspace.Block
- print("h")
- Block.Touched:Connect(function(x)
- print("e")
- if x:IsA("Part") and not x.Parent:FindFirstChild("Humanoid") then
- x.CustomPhysicalProperties = PhysicalProperties.new(0.7,0.1,0.5,0.3,1)
- print(x.CustomPhysicalProperties.Friction)
- print(x.Name)
- end))]], owner.Character)
- f.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0.5, 0, 1)
- print(f.CustomPhysicalProperties.Density)
- print(f.CustomPhysicalProperties.Friction)
- print(f.CustomPhysicalProperties.FrictionWeight)
- wait(10)
- f:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement