Help with anchor script

i most use startergui drfsfdsdsfsdfdf

first of all, that’s a normal script but i changed the RunContext to Client.
Secondly, surely making the RunContext to Server would make it so when it clicks, it falls down for every player.

image
Something tells me that this is a localscript.

yea this is local script dkjhjhjkghjdkjdfkjdfjkjdfjdkfjkdfjkffgjghdkj

put script to click detector hjadfsskdsj

Now I’m confused on how this thread has 47 replies.

1 Like

Ok, first I create the base of the challenge, it will remain in workspace, and be a server created object.


image

Then in studio, I create the actual falling part, the bridge
image
Then I move this model to ‘ReplicatedStorage’ (just the falling part)
image

So now in workspace I have the base part (two platforms) and in replicated storage I have the falling part (bridge)

The base part has a local script…
image

local bridge = game.ReplicatedStorage.Bridge:Clone()
bridge.Parent = script.Parent

All this does is find the falling part in replicated storage, and parent it to the base part in workspace.
This causes the falling part to be created locally on the client, and so it becomes visible in the map.
image

Then inside the ‘falling part’ there is a click detector and some code…
image

script.Parent.ClickDetector.MouseClick:Connect(function(player)
	script.Parent.Part.Anchored = false
end)

This code simply detects if the player clicks the bridge, and unanchors it

Here is the place file if you need to see it in studio
BridgeFall.rbxl (42.7 KB)

1 Like

for some damn reason, it didn’t work. not even an error occurs in output

did you try the attached .rbxl file as is? Did that at least work?

1 Like

Yes that rbxl file did work, but for some god forsaken reason, my place didn’t work

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.