#Grab
11 messages · Page 1 of 1 (latest)
1 sec lemme find it
So you can grab a player
Script 1:
script.Parent.Handle.Touched:Connect(function(Hit)
if Hit.Anchored == false then
local w = Instance.new("Weld")
w.Part0 = script.Parent.Handle
w.Part1 = Hit
w.Parent = script.Parent.Handle
script.Parent.Script2.Disabled = false
script.Disabled = true
end
end)
end)```
Script 2:
```script.Parent.Activated:Connect(function()
script.Parent.Handle.Weld:Destroy()
script.Parent.Script.Disabled = false
script.Disabled = true
end)```
The thing is I'm just either stuck in the baseplate and can't barely move or I'm moving like really slow
I know that the second thing is caused by the characters mass, and I was wondering on how I could change that to like -9999999
I've no clue what you tried to do in these scripts.
Here's a tutorial on how to make half life 2's gravity gun. Which is what I'm guessing that you're trying to do. just translate his steps into luau https://www.youtube.com/watch?v=O93dev7l5Vg
Hey everyone! In this tutorial I'll show you how to make Half-Life 2's Gravity Gun in Unity3D.
Script: https://pastebin.com/ycvjRDuL
Music by Stevia Sphere: https://steviasphere.bandcamp.com/