Been scripting for a day now and wondering the basics, literally any info someone can give me about coding in roblox would help

ok well thats a good start i guess for me xd

Iā€™ll just link some stuff on functions and touch events that youā€™d need for what you want anyways (Also the devhub is a really good resource for this kinda stuff)

https://developer.roblox.com/en-us/articles/Function
https://developer.roblox.com/en-us/articles/events

acording to this, you want it to change color everytime you stand on it.

do this

-- script in server script service. Change the color part to your part's name
local ColorPart = workspace.ColorPart
local Touching = false
ColorPart.Touched:Connect(function(Part)
	local Char = Part:FindFirstAncestorWhichIsA("Model")
	if Char then
		local Humanoid = Char:FindFirstChildWhichIsA("Humanoid")
		if Humanoid then
			Touching = true
			while Touching == true do
				ColorPart.BrickColor = BrickColor.Random()
				task.wait(1)
			end
		end
	end
end)
ColorPart.TouchEnded:Connect(function(Part)
	local Char = Part:FindFirstAncestorWhichIsA("Model")
	if Char then
		local Humanoid = Char:FindFirstChildWhichIsA("Humanoid")
		if Humanoid then
			Touching = false
		end
		end
end)

place fil
color part.rbxl (34.5 KB)

ive managed to code it to change color can anyone tell me how i can make it do it when it gets stepped on and also how the coloring works cos its only cycling through blue and pink rn

look at what I said above. It has everything you need

oh wow thats a lot, do u think theres a more simple thing i can try to code with this part or because ive been learning only for a day

you canā€™t really simplify it. It does what you want. If you dont feel like copy pasting it, you can use the place file I attached
color part.rbxl (34.5 KB)

noo i mean like anything simple else i can code just trying to learn the very very basics for now

maybe like a ui popup if im in a certain area or leaderstats

so you want to make the color of the part stand but dont want to do the necessary code to do so?

noo i mean something away from the part

and i dont rly wanna copy paste the code but thank you very much for the help i really do appriciate it

Check out this page on dev hub Learn Roblox Studio | Roblox Creator Documentation

1 Like

just because trying to learn to do things myself

Well if youā€™d like i can say what each part of the code does. That way you learn.

i figured it out by reading through it, if you can explain how i can make a teleporter i would appriciate

Hi,

I would suggest googling your question before asking it here. Hereā€™s a guide I found for teleporter pad: Roblox Scripting Tutorial: How to Script a Teleport Pad - YouTube

the original post was about making a partā€™s color change when you stand on it. I recommend you make my post the solution since it solved the original problem and make another topic for the teleport pad.