Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Making a part's BrickColor change to whatever color you're standing on?

Asked by
kfish98 16
7 years ago

--[[ Sorry about the repost, it's just the last one was a mess so I ended up deleting it. ]]--

Anyways, I was experimenting with actions in studio and made an earth bending move in which the player lifts a large wall out of the ground. I want to know how to change the earth wall's BrickColor to whatever color the brick you're standing on is (and by the brick I mean floor.)

All I know is that I should name all the floors "Floor" so I can tell the script to change the color of the brick to whatever color the Floors are, what I don't know is how to tell the script to change the color to whatever color the Floors are.

local Player = game.Players.LocalPlayer
local mouse = script.Parent.Parent:GetMouse()
local char = Player.Character or Player.CharacterAdded:Wait()



function onKeyDown(key)
    key = key:lower()
    if key == "r" then
script.Disabled = true

local RSW = game.Lighting.RMOVE.RSW:Clone() --Bringing Wall from Lighting
RSW.Parent = game.Workspace
RSW.Transparency = 1
wait(0.6)
RSW.Anchored = true
RSW.Transparency = 0

RSW.Color = ? ¿ ? -- ¯\_(?)_/¯

    char.Humanoid.WalkSpeed = 0 --WALKSPEED HERE
    end

RSW.CFrame = char.UpperTorso.CFrame *CFrame.new(0,1,-10)
        wait(0.025)
        RSW.CFrame = char.UpperTorso.CFrame *CFrame.new(0,2,-10)
        wait(0.025)
        RSW.CFrame = char.UpperTorso.CFrame *CFrame.new(0,3,-10)
        wait(0,025)
        RSW.CFrame = char.UpperTorso.CFrame *CFrame.new(0,4,-10)
        wait(0.025)
        RSW.CFrame = char.UpperTorso.CFrame *CFrame.new(0,5,-10)
        wait(0.5)


char.Humanoid.WalkSpeed = 16

RSW:Destroy()
script.Disabled = false

Any advice'd be appreciated, thanks!

0
This would be easy if you had one single floor. Do you have multiple floor types or just one? Loughdough 291 — 7y
0
I have 2 floors labeled "Floor". kfish98 16 — 7y

Answer this question