local NPC = script.Parent.Tori
local function VanillaIcecream()
local Coordinates = script.Parent.Coordinates.VanillaIcecream.Value
NPC.Humanoid:MoveTo(CFrame.p)
NPC.Humanoid.MoveToFinished:wait()
NPC:SetPrimaryPartCFrame(CFrame)
end
function game.ReplicatedStorage.Events.SnackToServer.OnServerInvoke(Player,Type)
print(Type)
Type()
end
What I want to do is, you see that there is a function in the script. And then there is a event that is received from a client, with the argument Type. The Type name is called "VanillaIcecream, the same as the function. Is it possible to do Type()/VanillaIcecream()
Outputattempt to call local 'Type' (a string value)

4 comments
Please tell us what you want to do with this script a little more
Now?
Wait, I'm confused. Are you asking if you can pass a function as an argument to remotes?
Ok I updated it to my real script.