local function onTouch (hit)
if (hit.Parent:findFirstChild("Ball") ~= nil) then
print(hit)
print("collision started")
game.ReplicatedStorage.MenuGuis.CollideGui:Clone.Parent = (don't know what to do here)
end
end
script.Parent.Touched:connect(onTouch)
COMMUNITY QUESTION
Is there a way to clone a gui to the other player when 2 parts collide?
1 answer
You're using clone the wrong way. It requires a parenthesis.
This is a parenthesis: ()
Correct usage: :Clone()
Correct script:
game.ReplicatedStorage.MenuGuis.CollideGui:Clone().Parent = (put path to the place where you want to put it, for example game.Workspace.)
A method is defined with a colon at the start and parenthesis at the end that can or not have a parameter. :Clone() is a method.
1 comment
0
This is not an answer to his question. Why did you post it as an answer?
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
is this a player and a part touching?
its like a player shoots a blast to another player player who shot one, and i want it so when it collide's a gui pops up on both player's screen