WebFeb 20, 2024 · Hello there. I am beginner scripter, and i want to make that on touch to a part, player gets +1 to an specific value. The problem is when i try to touch the part, onTouch event is not firing. I tried to make it unAnchored, but that have done no progress. Here is my code for the part: local cash = game.ReplicatedStorage.cash local valueToGive = 1 … Webraw download clone embed print report -- Made by Real_IceyDev (lceyDex) -- -- Paste script below into a Script, put the Script under the part you want to kill players when they touch it …
Need help with destroying a block on touch - Scripting Support ...
WebNote: Put this code in a script inside of the part that the player touches. local function onTouch (hit) hit.Parent.Parent.Torso.Anchored = true script.Parent.Touched:connect (onTouch) Just copy the script and paste it into the script. Tell me if it works. If not, then tell me the errors and I'll attempt to fix it. mxatt_ WebOct 12, 2024 · Need help with destroying a block on touch - Scripting Support - DevForum Roblox I am trying to destroy a block each time a hammer touches it here is my script: local hammer = game.StarterPack.Hammer local Part1 = game.Workspace.Part1 function onHit(hit) if hit.Parent == hammer then Part1:Destro… how to decorate for autumn
How do you make a brick disappear and reappear in ROBLOX?
WebMay 23, 2024 · How to make when touched a part kill the player! (ROBLOX) MiladPlays 57 subscribers Subscribe 16 Share 1.2K views 1 year ago Like and subscribe! Script: Show more Show more Roblox … WebJan 11, 2015 · In this tutorial you will learn how to create an onTouch function and learn how to create variables. Full script: Brick = game.Workspace.Brick function onTouch () … WebJun 8, 2024 · It seems like the issue is that when you made the onTouch function, you had a parameter: object. However when you called the function on a player touching the part, you put no parameter: sandblock.Touched:Connect (onTouch). To fix this, do: sandblock.Touched:Connect (onTouch ()) Share Improve this answer … how to decorate for a beach theme party