#How do a make a plate that makes parts that touched it stuck to it?

12 messages · Page 1 of 1 (latest)

abstract orbit
#

the game im making is kinda like Cook Burgers

pallid fiber
#

You would detect when an object touches the plate by using: Plate.Touched:Connect(funtion(Hit)
Part.Touched() Docs: https://create.roblox.com/docs/reference/engine/classes/BasePart#Touched

And then use: Instance.new("Weld Constraint", Parent) to weld the object to the plate
Instance.new() Docs: https://create.roblox.com/docs/reference/engine/datatypes/Instance#new
Weld Constraint Docs: https://create.roblox.com/docs/reference/engine/classes/WeldConstraint

@abstract orbit

Joins two Class.BasePart together such that their relative position and
orientation remain the same.

The abstract base class for in-world objects that physically interact.

Holds the constructor for Instances.

abstract orbit
#

ty

#

So what is the whole script @pallid fiber

#

i dont understand which parts to put together

abstract orbit
#

?

graceful fjord
#

The plate and the part

#

Plate as part0
Part as part1

abstract orbit
#

Plate.Touched:Connect(funtion(Hit)
Part.Touched()Instance.new("Weld Constraint", Parent) like this????

abstract orbit
#

@graceful fjord ?

#

idk how to script

graceful fjord
#

Plate.Touched:Connect(function(p)
local w = Instance.new("WeldContraint")
w.Parent = Plate
w.Part0= Plate
w.Part1 = p
end)