Тёмный

How to make a "click to spawn a part" function in Roblox Studio! 

Pandastroyer
Подписаться 10 тыс.
Просмотров 22 тыс.
50% 1

THANK YOU SO MUCH FOR 500 SUBS!! It really means a lot to me and I appreciate having every single one of you guys! #roadto1k !
This tutorial will show you how to make a function that spawns a part whenever someone clicks their mouse! Hope you enjoy it!
#roblox #funny #gaming #coding #robloxstudio #robloxstudiotutorial #programming #memes #tutorial #robloxtutorial #codingtutorial

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 156   
@Timskat
@Timskat 2 месяца назад
The working one: local main = game.ReplicatedStorage.SpawnPart -- Имя Парта local player = game.Players.LocalPlayer local mouse = player:GetMouse() local debounce = false mouse.Button1Down:Connect(function() if debounce == false then debounce = true local new = main:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-10) wait(1) debounce = false end end)
@DesireOdun
@DesireOdun 29 дней назад
do you know how to make it disappear after a certain amount of time
@miarajcevic6072
@miarajcevic6072 3 дня назад
do wait(ur number here) then Part:Destroy() i think btw im using my sisters acc
@dontask3395
@dontask3395 Год назад
It actually worked it helped me a ton
@Pandastroyer
@Pandastroyer 5 месяцев назад
Sorry for the late response, but I'm glad that I was able to help! :)
@Krytsee
@Krytsee 13 дней назад
heres a funny tip: change the wait(1) to wait(0.1) and you can then spawn parts way faster, ofc you can also make it fasster AND slower! edit: you can copy the script and then youre able to spawn MULTIPLE parts
@VegitoBlue_
@VegitoBlue_ Год назад
If you wish for it to rotate in the direction your character is facing add this new.Rotation = player.Character.HumanoidRootPart.Rotation
@GnarpyREAL
@GnarpyREAL Месяц назад
It makes my part go flat
@melkify7493
@melkify7493 7 месяцев назад
Alr, I found a working one that spawns in front of you when you left click. For some reason, the video tutorial didn't work for me local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Get the player's HumanoidRootPart local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart") -- Calculate the position in front of the player local positionInFront = humanoidRootPart.CFrame.Position + humanoidRootPart.CFrame.LookVector * 5 -- Set the new part's CFrame to the calculated position new.CFrame = CFrame.new(positionInFront) new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace end)
@TBGNacer
@TBGNacer 6 месяцев назад
W
@melkify7493
@melkify7493 6 месяцев назад
@@TBGNacerGlad I could help!
@omwwww
@omwwww Месяц назад
Hey, thanks for that but when my part has a script, so when i spawn it with your script, the parts script didn't come with it, can you help me maybe? either way, thanks
@funnyvalentine4579
@funnyvalentine4579 4 месяца назад
how do i make it go forward after it spawned?
@cjdude242
@cjdude242 Год назад
How do i make the part spawn in a specific location and not infront of the player?
@sharkite69420
@sharkite69420 3 месяца назад
delete the new.postion line 👍
@ehhhh16
@ehhhh16 4 месяца назад
Hey can you help i modifed the script so when u click the block it spawns can someone help me whats wrong with it. It says that attempt to index a boolean with "Clone" local hizo = workspace.hizo == nil script.Parent.ClickDetector.MouseClick:Connect(function() local new = hizo:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame*Vector3.new(0,0,-10) end)
@justmaak
@justmaak 4 месяца назад
write: local hizo = workspace.hizo not: local hizo = workspace.hize == nil
@TravTrevTV
@TravTrevTV 16 дней назад
isnt it game.workspace.hizo
@marcobaguio7254
@marcobaguio7254 8 месяцев назад
this is what i typed manually local main = game.ReplicatedStorage.SpawnPart local player = game.Player.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = main:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame*Vector3.new(0,0,-10) end) but it doesn’t work :(((
@melkify7493
@melkify7493 7 месяцев назад
Here's what an AI gave me (It actually works): local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Get the player's HumanoidRootPart local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart") -- Calculate the position in front of the player local positionInFront = humanoidRootPart.CFrame.Position + humanoidRootPart.CFrame.LookVector * 5 -- Set the new part's CFrame to the calculated position new.CFrame = CFrame.new(positionInFront) new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace end)
@marcobaguio7254
@marcobaguio7254 7 месяцев назад
@@melkify7493 Thank You
@marcobaguio7254
@marcobaguio7254 7 месяцев назад
@@melkify7493 I’ll try it Later
@marcobaguio7254
@marcobaguio7254 7 месяцев назад
or maybe tomorrow
@XxrmxX7
@XxrmxX7 14 дней назад
this litlle line of code helped me soo much to fix my giga problems thanks you soo much!
@waterpak9511
@waterpak9511 Год назад
The cooldown script isnt working for me, can you help? Heres the script: local main = game.ReplicatedStorage.Common local player = game.Players.LocalPlayer local mouse = player:GetMouse() local debounce = false mouse.Button1Down:Connect(function() if debounce == false then debounce = true local new = main:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.Character.HumanoidRootPart.Cframe*Vector3.new(0,0,-10) wait(1) debounce = false end end)
@Pandastroyer
@Pandastroyer Год назад
Strange. Is your script a local script?
@Timskat
@Timskat 2 месяца назад
I FIXED IT!!! here you go: local main = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() local debounce = false mouse.Button1Down:Connect(function() if debounce == false then debounce = true local new = main:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-10) wait(1) debounce = false end end) it's my first day scripting... i just noticed that... CFrame maybe should be with F and not f? IT WORKED!!!!
@JackDoesGameStuff
@JackDoesGameStuff Год назад
thanks exactly what I needed
@Pandastroyer
@Pandastroyer Год назад
Glad to hear that! :D
@JackDoesGameStuff
@JackDoesGameStuff Год назад
@@Pandastroyer but i have a question is there a way to make the part show on all screens
@AmpScript24
@AmpScript24 6 месяцев назад
@@JackDoesGameStuff put it in the server by using a remote event
@Steveissteve551
@Steveissteve551 9 месяцев назад
can you make tutorial that if you equiqt [Building] its tool in starter pack then you can Build but if you are not equiqng it then you cant
@JamoFamo
@JamoFamo 5 месяцев назад
if you want to do this then put the script in a tool then to activate it you put the code tool.Activated:Connect(function() -- put code here end) if you dont have a handle turn requires handle off
@marcobaguio7254
@marcobaguio7254 8 месяцев назад
i typed the whole thing manually, exactly the same but i don’t get why it doesn’t work
@melkify7493
@melkify7493 7 месяцев назад
Ur right ngl. I gotchu bro. Here's what an AI gave me (It actually works): local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Get the player's HumanoidRootPart local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart") -- Calculate the position in front of the player local positionInFront = humanoidRootPart.CFrame.Position + humanoidRootPart.CFrame.LookVector * 5 -- Set the new part's CFrame to the calculated position new.CFrame = CFrame.new(positionInFront) new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace end)
@FoxGaming1026
@FoxGaming1026 17 дней назад
@@melkify7493I’m late to this but I wanna say I dint think Tia Roos in public’s because a local script only works on the client, so only you would see it. I think the way to make other players see it would be a server script and an event
@lolam890plays
@lolam890plays Месяц назад
Hey dude, Also Would it work With a Vehicle Seat?
@icecremmester
@icecremmester Год назад
Underrated
@Pandastroyer
@Pandastroyer Год назад
Thanks lol 😀😄
@charminghabanero
@charminghabanero Месяц назад
please make an object button that spawns the item when clicked
@abz982
@abz982 Год назад
what can I add to the script so that it disappears after a couple seconds
@Pandastroyer
@Pandastroyer Год назад
Add a script into the part that you are cloning and paste this into it: local part = script.Parent wait(5) part:Destroy() You can change the wait value to whatever you want, but if it doesn't work please tell me and I will fix it :)
@Henry-di8jb
@Henry-di8jb 8 месяцев назад
its doesnt work :(@@Pandastroyer
@hvqhie
@hvqhie 6 месяцев назад
how do i make it so it’s owner only
@Ama_player
@Ama_player 6 месяцев назад
Thanks :D
@Pandastroyer
@Pandastroyer 6 месяцев назад
Any time! :)
@Ama_player
@Ama_player 5 месяцев назад
@@Pandastroyer :]
@Ama_player
@Ama_player 5 месяцев назад
@@Pandastroyer I Actually started Making games BC of you :D
@lolam890plays
@lolam890plays Месяц назад
1:43 BRO THAT JUMPSCARED ME
@uhhoops_
@uhhoops_ Год назад
how do i make it custom and for specific people aswell as when you press a button?
@ticklemybottom
@ticklemybottom 2 месяца назад
Yeah
@gamer123-so7ls
@gamer123-so7ls 6 месяцев назад
very help good thanks
@Pandastroyer
@Pandastroyer 6 месяцев назад
Anytime my kind sir
@SelfEffacingGangsta
@SelfEffacingGangsta 8 месяцев назад
thanks, i modified from mouse klik to keyboard input, work perfect
@Pandastroyer
@Pandastroyer 8 месяцев назад
Nice! I’m glad to hear that :)
@brickbybrickproductions3237
@brickbybrickproductions3237 8 месяцев назад
how did you do that
@SelfEffacingGangsta
@SelfEffacingGangsta 7 месяцев назад
@@brickbybrickproductions3237 local main = ReplicatedStorage.SpawnPart local player = Players.LocalPlayer local U = game:GetService("UserInputService") -- modify from mouserclick to presskey U.InputBegan:Connect(function(input, processed) if not processed and input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.R then -- change R to anykey local new = main:Clone() new.Parent = workspace new. anchored = false new. CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-10) end)
@randomstuffloool
@randomstuffloool Год назад
Can you make a tutorial on where if you click a part (such as a blue part or a sphere) a new part of that kind spawns in the place you set it to be? (Might be a long tutorial though)
@Erdi13
@Erdi13 Год назад
Here are the steps: 1) Add a part in workspace 2) Add a ClickDetector in the part 3) Add a Script in the part 4) Paste this script in the script: script.Parent.ClickDetector.MouseClick:Connect(function() local NewPart=Instance.new("Part") NewPart.Anchored=false - This makes the part unanchored. If u want it anchored set the false to true. NewPart.Position=Vector3.new(0,0,0) -This sets the position of the part. If u want to change the position change the numbers. NewPart.Parent=game.Workspace -This sets the parent of the part NewPart.BrickColor=BrickColor.Red() -This sets the colour of the part. If u want to change it set the red to any colour you want end) And the part you want will be spawned.
@Erdi13
@Erdi13 Год назад
@@mohamedmamdouh3870 Just change the instance.new("Part") to instance.new("Sphere")
@Smiler.mp4
@Smiler.mp4 Год назад
@@Erdi13 how to make the part that you spawned despawns when you spawn another of that kind
@Pandastroyer
@Pandastroyer Год назад
Bro is stealing my job lolol 😆
@mohamedmamdouh3870
@mohamedmamdouh3870 Год назад
@@Erdi13 dont work
@catalchemy
@catalchemy Год назад
How can I do this but with proximity prompt (press e to spawn a block)
@zedbez3208
@zedbez3208 Год назад
Knowing Kel's full name is Kelsey now changes my life
@N0t_Lukas
@N0t_Lukas Год назад
how do i make the part get destroyed after maybe 5 seconds of it being spawned?
@N0t_Lukas
@N0t_Lukas Год назад
@Name :D thanks! im a bit of an idiot when it comes to scripting
@N0t_Lukas
@N0t_Lukas Год назад
its not working now? i did work once but now it dont.
@N0t_Lukas
@N0t_Lukas Год назад
@Name sorry for the late reply but i manged to make it work. i just had to to change some things
@LancerIsnotaspade-sh8ky
@LancerIsnotaspade-sh8ky 29 дней назад
hey so i have a question is it possible to make it when u press a button it spawns in?
@JustDaveIsTaken
@JustDaveIsTaken Год назад
Can you make it so instead of it being spawned in front of the player its where the mouse is?
@melkify7493
@melkify7493 7 месяцев назад
Here's what an AI gave me (It actually works): local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Set the new part's CFrame to the mouse's position new.CFrame = mouse.Hit new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace end)
@tylerchubby4242
@tylerchubby4242 День назад
is this possible with proximity Promp and if it can then how?
@MatCantCode
@MatCantCode Год назад
i am using a model and it says Position is not a valid member of model
@Pandastroyer
@Pandastroyer Год назад
Yeah, you’ll need to edit the script a little bit for models. I can help you with that in a bit :)
@henr127
@henr127 Год назад
it's not working can you help me?
@joechabus1220
@joechabus1220 Год назад
can you how i add auto click to this?
@Pandastroyer
@Pandastroyer Год назад
Sorry, but can you please further describe that question?
@orangevee9545
@orangevee9545 Год назад
@@Pandastroyer maybe he means like adding an autoclicker to spawning parts
@Fixat3d2
@Fixat3d2 Год назад
This couldn't have been more perfect, thanks! 👍
@jeydin1085
@jeydin1085 11 месяцев назад
what if you want to spawn a lot of different parts from a folder?
@cillianegan2497
@cillianegan2497 4 месяца назад
local main = game.ReplicatedStorage.spawnpart change the spwanpart to the name of the piece you have
@toxicglow2638
@toxicglow2638 11 месяцев назад
This is perfect, but how can you make it so it spawns in a specific area? Also how can you add controller support?
@smilecoder801
@smilecoder801 6 месяцев назад
if you wanna make it spawn in a specific area, delete the last code.
@CGRcodeYT
@CGRcodeYT 4 месяца назад
@@smilecoder801 not the end) bit, inside the function
@mex_lul
@mex_lul 8 месяцев назад
Hi it doesnt work for me and I dont know why here is the script pls help me local main = game.ReplicatedStorage.Spawnpart local player = game.player.localplayer local mouse = player:getmouse() mouse.button1down:connect(function() local new = main:clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.character.humanoidrootpart.Cframe * Vector3(0,0,-10) end)
@thereal3sef
@thereal3sef Год назад
it didnt spawn it infront of the player for me
@raulcarrillo8834
@raulcarrillo8834 6 дней назад
local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Get the player's HumanoidRootPart local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart") -- Calculate the position in front of the player local positionInFront = humanoidRootPart.CFrame.Position + humanoidRootPart.CFrame.LookVector * 5 -- Set the new part's CFrame to the calculated position new.CFrame = CFrame.new(positionInFront) new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace new.Rotation = player.Character.HumanoidRootPart.Rotation end)
@melkify7493
@melkify7493 7 месяцев назад
For some reason, it didn't work for me. This one works tho. It doesnt clone in front of you, but it clones where the Part is located: local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true end)
@gamingrdr
@gamingrdr 6 месяцев назад
SAME I WANT IT TO SPAWN IN FRONT OF ME BUT ALSO WHEN YOU USE A TOOL AND ON THE KEY LETTER "E". oops srry caps lock lol
@melkify7493
@melkify7493 6 месяцев назад
@@gamingrdrGlad I could help!
@TravTrevTV
@TravTrevTV 2 месяца назад
@@gamingrdr local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local key = game:GetService("UserInputService") key.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then local new = part:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true end end) try this
@ender4876
@ender4876 Год назад
Can you make a script where you click it will spawn a part in that place where you clicked?
@melkify7493
@melkify7493 7 месяцев назад
Here's what an AI gave me (It actually works): local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Set the new part's CFrame to the mouse's position new.CFrame = mouse.Hit new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace end)
@10stvr
@10stvr Год назад
doesnt work, the script has no errors and i have the part in replicated storage with the same name and everything
@DENTIC
@DENTIC Год назад
it does work, what you have to learn is that CFrame doesnt exist in HumanoidRootPart
@Cameroni5005
@Cameroni5005 Год назад
@@DENTIC what is that supposed to mean
@Cameroni5005
@Cameroni5005 Год назад
yeah ikr
@BlokyDoesRoblox6603
@BlokyDoesRoblox6603 5 месяцев назад
i made a model for this speceficly but yet it doesnt work can you help?
@IsVugDude
@IsVugDude 10 месяцев назад
hey dude do you know how to make this script but adding more parts and being randomized when you spawn a new part?
@user-bq4ml6hm3e
@user-bq4ml6hm3e 6 месяцев назад
can i ask how to make it go to replicatedstorage again?
@pnxexploits3840
@pnxexploits3840 7 месяцев назад
doesnt work
@melkify7493
@melkify7493 7 месяцев назад
Here's what an AI gave me (It actually works): local part = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:Connect(function() local new = part:Clone() -- Get the player's HumanoidRootPart local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart") -- Calculate the position in front of the player local positionInFront = humanoidRootPart.CFrame.Position + humanoidRootPart.CFrame.LookVector * 5 -- Set the new part's CFrame to the calculated position new.CFrame = CFrame.new(positionInFront) new.Anchored = false new.CanCollide = true -- Parent the new part to the workspace so it becomes visible new.Parent = workspace end)
@NA_Not_Applicable
@NA_Not_Applicable 8 месяцев назад
for anyone too lazy to type the script: local main = game.ReplicatedStorage.SpawnPart local main = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1:Connect(function) local new + main:Clone() new.Parent = workspace new. anchored = false new. CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-10) end)
@NA_Not_Applicable
@NA_Not_Applicable 8 месяцев назад
non-spam script: local main = game.ReplicatedStorage.SpawnPart local main = game.Players.LocalPlayer local mouse = player:GetMouse() local debounce = false mouse.Button1Down:ct(function) if debounce == false then debounce = true local new + main:Clone() new.Parent = workspace new. anchored = false new. CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-10) wait(1) debounce = false end end)
@SquishedN
@SquishedN 7 месяцев назад
thanks LOL im too laazzyyyyyyyyyyyyy
@SelfEffacingGangsta
@SelfEffacingGangsta 8 месяцев назад
bro, can you help me, when i user model (car) it spawn not following my character. how to fix that, i try everything and im done
@SelfEffacingGangsta
@SelfEffacingGangsta 7 месяцев назад
solved, need to set Primary part
@waterpak9511
@waterpak9511 Год назад
Can you make it so that when you press a textbutton, the block appears?
@CGRcodeYT
@CGRcodeYT 4 месяца назад
yes that's what i need as well
@Kamil-db7ji
@Kamil-db7ji 11 месяцев назад
I want to make it spawn when i click e but idk how
@kirayoshikage2040
@kirayoshikage2040 3 месяца назад
can someone help me modify the script so it works for models pls
@TravTrevTV
@TravTrevTV 2 месяца назад
it works for models dude just put the model into the replicated storage and name it and put the name instead of spawnpart
@Purplebloxian
@Purplebloxian Год назад
Can Someone Put the Script Mines Not Work For Some Reason
@mysaltychip76
@mysaltychip76 Год назад
how do i make the part anchor
@boxannethegoat
@boxannethegoat 10 месяцев назад
simplest question change your code from new.Anchored = false To new.Anchored = true
@t0tallysetj1
@t0tallysetj1 Год назад
fun fact: this doesn't work with models
@Pandastroyer
@Pandastroyer Год назад
Yeah, but you can modify the script so that it works for models.
@t0tallysetj1
@t0tallysetj1 Год назад
@@Pandastroyer yeah one of my friends got it to work but it took lots of trial and error (we're beginner scripters) lol
@Pandastroyer
@Pandastroyer Год назад
Nice! Its always so cool when people are able to solve things like that :D
@_eh7
@_eh7 11 месяцев назад
Could u do one that spawns gears
@CGRcodeYT
@CGRcodeYT 4 месяца назад
just change the part to a gear, simple. Then name it Spawn Part and put it in replicated Storage
@meatybeatsofficial
@meatybeatsofficial Год назад
does this work with models
@Pandastroyer
@Pandastroyer Год назад
I think so, but you will need to edit the script a little bit :)
@Golden_Fares
@Golden_Fares 4 месяца назад
Make it that you have to open your tool to use it
@COREMAKESARTANDGAMES
@COREMAKESARTANDGAMES 6 дней назад
Can you help me add where after it spawns for 0.5 seconds it deletes it self
@CJ-RX
@CJ-RX Год назад
I tried doing it with a tool how can I fix it? There's my script: local main = game.ReplicatedStorage["The Stuff"] local player = game.Players.LocalPlayer local debounce = false game.Workspace["The maker"].ClickDetector.MouseClick:Connect(function() if debounce == false then debounce = true local new = main:Clone() new.Parent = workspace new.Position = Vector3.new(-161.57, 5.79, -2.3) wait(1) debounce = false end end) I just modified the script a little bit (btw the output said that position is not apart of my tool... Bc it prob thought that there is an instance called Position of my tools children)
@Brunoooxd10
@Brunoooxd10 8 месяцев назад
im last more replicatedstorege.part and no ["the stuff"], too no can space
@durtos
@durtos 8 месяцев назад
how do i make models work?
@zrkpiment3417
@zrkpiment3417 Год назад
how to make all the players see the part?
@noobsaber3213
@noobsaber3213 Год назад
Imagine posting this at 1am on a school night
@alexplayz-td4nr
@alexplayz-td4nr Год назад
how to make it show on all screens
@MateusTheMartian
@MateusTheMartian 7 месяцев назад
use a remote event and a server script
@nicolastorrejon7112
@nicolastorrejon7112 10 месяцев назад
this is false i tested out every thing it didnt work
@Pandastroyer
@Pandastroyer 10 месяцев назад
Sorry to hear that, however this tutorial actually works. If you could, please elaborate on what didn’t work and I’d be more than happy to help!
@nicolastorrejon7112
@nicolastorrejon7112 10 месяцев назад
@@Pandastroyer ok i will need some help
@Cameroni5005
@Cameroni5005 Год назад
bro, its fake...
@Pandastroyer
@Pandastroyer Год назад
Nah it’s not fake. You can test it out for yourself and if you did everything right, it will 100% work for you :)
@Pandastroyer
@Pandastroyer Год назад
Unless Roblox updates or something, which the chances for the script breaking is unlikely
@Cameroni5005
@Cameroni5005 Год назад
@@Pandastroyer Nope, the part goes to some random place which is not infront of me here is my code: local main = game.ReplicatedStorage.SpawnPart local player = game.Players.LocalPlayer local mouse = player:GetMouse() print("starting") mouse.Button1Down:Connect(function() print("player has clicked") local new = main:Clone() new.Parent = workspace new["damage brick"].Touched:Connect(function(hit) if hit and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5 end end) new.Position = player.Character.Torso.CFrame*Vector3.new(0,0,-3) wait(6) new:Destroy() end) i added some sutff, but yeah it doesent work
@Pandastroyer
@Pandastroyer Год назад
Alright. Its either because of the addition stuff or because you put ‘Torso’ instead of ‘HumanoidRootPart’ in the line for the clones position. I’m on the studio app so I can’t see the script properly, but if it still doesn’t work, come back to me and I’ll be glad to help! :)
@thefunny6067
@thefunny6067 Год назад
what is that symbol before vector3.new?
@Pandastroyer
@Pandastroyer Год назад
It’s an asterisk. It looks like this: * It’s another way to multiply, if you don’t already know 🙂
@srima7536
@srima7536 Год назад
How to make all players see
@Pandastroyer
@Pandastroyer Год назад
Everyone can already see the parts you’ve spawned in because their parent is the workspace. Nice question though 👍👍
@srima7536
@srima7536 Год назад
@@Pandastroyer But my friend cant see it in the game My script: local cube1 = game.ReplicatedStorage.cube1 local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() Mouse.KeyDown:connect(function(Key) Key = Key:lower() if Key == 'z' then local spawn = cube1:Clone() spawn.Parent = workspace spawn.CanCollide = true spawn.Position = Player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-5) end end)
@Pandastroyer
@Pandastroyer Год назад
@@srima7536 Is your friend viewing it through Roblox Studio or Roblox itself?
@srima7536
@srima7536 Год назад
@@Pandastroyer roblox istelf
@srima7536
@srima7536 Год назад
Help pls
Далее
Can 6 DEVS Make an OBBY Game Without Communicating?
15:02
Pro Scripter vs Roblox AI... (Should you be Worried?)
16:01
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 10 млн
BEST WAY to make tools on Roblox for free! [Beginner]
7:33
I Paid Fiverr Game Developers to Make the Same Game
10:25
How to Animate an ENTIRE SCENE with ROBLOX STUDIO!!!
3:49
The Most Impressive Scratch Projects
11:00
Просмотров 4,9 млн
ClickDetectors | How To Use | Roblox Studio
12:28
Просмотров 14 тыс.
I Spent 2,000 Hours Using Scratch
13:59
Просмотров 565 тыс.
I Paid Devs on Fiverr to Make an Open World Game
8:33
Просмотров 286 тыс.
The Truth Behind Roblox's Greediest Developer...
9:09
Просмотров 599 тыс.
What Is The Best AI For Roblox Studio Scripting?
10:42
Просмотров 439 тыс.
I Learned How to SCRIPT in 7 Days | Roblox
11:00
Просмотров 93 тыс.