Skip to content

bhop_symphony minor touchups#121

Merged
krakow10 merged 1 commit intoStrafesNET:mainfrom
dowoge:patch-1
Apr 26, 2024
Merged

bhop_symphony minor touchups#121
krakow10 merged 1 commit intoStrafesNET:mainfrom
dowoge:patch-1

Conversation

@dowoge
Copy link
Contributor

@dowoge dowoge commented Apr 26, 2024

by 3nrk

@krakow10 krakow10 merged commit f1d0d1f into StrafesNET:main Apr 26, 2024
@krakow10
Copy link
Collaborator

I'm not excited about

runService.RenderStepped:Connect(function(step)
	local ray = Ray.new(camera.CFrame.Position, Vector3.new(0, bRayHeight, 0))
	local hit = workspace:FindPartOnRayWithWhitelist(ray, {bZones})
	if hit then
		if hit.Name == "R" then
			for _, v in bFolder.ButtonPlatforms:GetChildren() do
				if v:IsA("BasePart") then
					v.Material = Enum.Material.Concrete
					if v:FindFirstChildWhichIsA("Decal") then
						v:FindFirstChildWhichIsA("Decal").Transparency = 0.9
					end
					if v:FindFirstChildWhichIsA("SpecialMesh") then
						v:FindFirstChildWhichIsA("SpecialMesh"):Destroy()
					end
				end
			end
		else
			for _, v in bFolder.ButtonPlatforms:GetChildren() do
				if v:IsA("BasePart") and v.Name == hit.Name then
					v.Material = Enum.Material.ForceField
					if not v:FindFirstChildWhichIsA("SpecialMesh") then
						local mesh = Instance.new("SpecialMesh", v)
						mesh.TextureId = "http://www.roblox.com/asset/?id=459487304"
						mesh.VertexColor = Vector3.new(1, 0, 0)
						mesh.Scale = Vector3.new(v.Size.X, v.Size.Y, v.Size.Z)
					end
					if v:FindFirstChildWhichIsA("Decal") then
						v:FindFirstChildWhichIsA("Decal").Transparency = 1
					end
				elseif v:IsA("BasePart") and v.Name ~= hit.Name then
					v.Material = Enum.Material.Concrete
					if v:FindFirstChildWhichIsA("SpecialMesh") then
						v:FindFirstChildWhichIsA("SpecialMesh"):Destroy()
					end
					if v:FindFirstChildWhichIsA("Decal") then
						v:FindFirstChildWhichIsA("Decal").Transparency = 0.9
					end
				end
			end
		end
	end
end)

can this be baked down a little more so there's not loops going on every renderstepped?

@krakow10
Copy link
Collaborator

krakow10 commented Apr 26, 2024

nvm that's bhop_quaint, this is uploaded 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants