This is probally gonna sound Unusual or maybe dumb. But mine TextLabel is not wanting to change trought script.
- Well I really tryed of everything, checking if the code’s running with print or even changing it to Other places and redoing it to find the odd’s.
Mine script is about when a player clicks a button displaying a car, (Using Viewportframe) it goes to a global Gui where it will display the Car Values in certain gui’s. ( The car values are a table with Subtables inside made in a module script) This is rather to find efficiency and probally make less lag that if i was making for each Buttons a gui, and I’m now on the part where i globally show all the values but now Im checking if the table can be portable in the text.
One thing that was also happening is that the function dont rather activate or show a signal that it is working, from now im just want to see if i can change the text trough script since the most simple:
CarName.Text = "Audi Quattro Sport"
Is not even functioning!
I just want to know why it inst working
- Well I kinda don’t see where the problem is because… It’s really unknow for me as an Early scripter.
Here’s some photo to maybe clarify it:
And here’s the script with the Code. I just want to know why it inst working
-- Services
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local localplayer = Players.LocalPlayer
local Servertorage = game:GetService("ServerStorage")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CoreGui = game:GetService("CoreGui")
local StarterGui = game:GetService("StarterGui")
-- Main Variables
local GameImage = StarterGui:WaitForChild("ScreenGui"):WaitForChild("GameImage")
local Store = GameImage:WaitForChild("StoreBttn")
local AppearStore = GameImage:WaitForChild("StoreAppear")
local CmDlPr = AppearStore:WaitForChild("CMdlPr")
local InRes = ReplicatedStorage:WaitForChild("WhatinThe")
local Databs = require(game:GetService("ReplicatedStorage").TableOfValues)
-- Inside Variables
local PreviewCar = CmDlPr:WaitForChild("GlobalCarPreview")
local Buy = CmDlPr:WaitForChild("BuyBttn")
local Carname = CmDlPr:WaitForChild("CarName")
local Carprice = CmDlPr:WaitForChild("CarPrice")
-- Functions
local function InResponseD()
local copy = Databs
for i, v in ipairs(copy) do
Carname.Text = tostring(copy["Audi Quattro Sport"])
Carprice.Text = tostring(copy["Audi Quattro Sport"]["Price"])
print("did it go")
end
end
InResponseD()
- I tryed using the print function, looking into Roblox Developer Api Reference and Roblox Forum (Here), youtube tutorials but Now that im able to post, here it goes.